!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@wix/image-kit"),require("react"),require("react-dom"),require("lodash")):"function"==typeof define&&define.amd?define(["imageClientApi","react","reactDOM","lodash"],t):"object"==typeof exports?exports.PostListViewerWidgetNoCss=t(require("@wix/image-kit"),require("react"),require("react-dom"),require("lodash")):e.PostListViewerWidgetNoCss=t(e.__imageClientApi__,e.React,e.ReactDOM,e._)}("undefined"!=typeof self?self:this,((e,t,r,i)=>(()=>{var n={80631:e=>{e.exports={TRANSFORM_TYPE_FIT:"fit",TRANSFORM_TYPE_FILL:"fill"}},20498:(e,t,r)=>{var i=r(80631).TRANSFORM_TYPE_FIT,n=r(17607).min,o="png",s=[o,"gif","jpg","jpeg"];function a(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}e.exports={getImageFilename:function(e){return e?e.replace(/^media\//,""):""},getImageUrl:function(e){return function(t,r){var l=void 0===t?{}:t,u=l.file_name,c=l.width,d=l.height,h=void 0===r?{}:r,p=h.maxWidth,g=void 0===p?1e3:p,m=h.maxHeight,f=void 0===m?1e3:m,y=h.quality,v=void 0===y?80:y,b=h.type,S=void 0===b?i:b,P=h.format,w=h.blur,_=void 0===w?0:w,C=h.encode,E=void 0!==C&&C;if(!P){var I=a(u);P=s.includes(I)?I:o}if(u){var O=[n([g,c]),n([f,d])];return"https://"+e+"/media/"+u+"/v1/"+S+"/w_"+O[0]+"%2Ch_"+O[1]+"%2C"+function(e){return e>0?"blur_"+e+"%2C":""}(_)+"al_c"+(v&&P!==o?"%2Cq_"+v:"")+(E?",enc_auto":"")+"/file."+P}return""}},getFileFormat:a}},6837:(e,t,r)=>{var i=r(20498),n=i.getImageFilename,o=i.getImageUrl;e.exports={resizeThumbnail:function(e){return function(t,r,i){return{url:o(e)({file_name:n(t),width:r,height:i},{maxWidth:640,maxHeight:480}),width:640,height:480}}},MAX_THUMBNAIL_WIDTH:640,MAX_THUMBNAIL_HEIGHT:480}},75394:e=>{e.exports=function(e){return function(t){return t&&e?"https://"+e+"/"+t:""}}},25945:(e,t,r)=>{"use strict";var i=Object.assign||function(e){for(var t=1;t{"use strict";e.exports={APP_PROTOCOL:"https",BLOG_SECTION_ID:"blog",BLOG_POST_PAGE_SECTION_ID:"post",MEMBERS_APP_ID:"14ad9202-3dd3-128a-57bd-e5675fd7e313",FORUM_APP_ID:"14724f35-6794-cd1a-0244-25fd138f9242",FORUM_SECTION_ID:"forum",SANTA_MEMBERS_APP_ID:"14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",NOTIFICATIONS_APP_ID:"14f25924-5664-31b2-9568-f9c5ed98c9b1",NOTIFICATIONS_SETTING_APP_ID:"14f25dc5-6af3-5420-9568-f9c5ed98c9b1",MEMBER_INFO_APP_ID:"14cffd81-5215-0a7f-22f8-074b0e2401fb",MEMBER_INFO_SECTION_ID:"member_info",FOLLOWERS_APP_ID:"14ebe801-d78a-daa9-c9e5-0286a891e46f",FORUM_RECENT_POST_WIDGET_ID:"151bd179-dfe6-3ca3-399c-ee97957f93a2",FORUM_APP_PAGE_ID:"1489040e-001f-4631-55a9-2c29b4417126",CHAT_APP_DEF_ID:"14517e1a-3ff0-af98-408e-2bd6953c36a2"}},73561:(e,t,r)=>{"use strict";var i=r(17607),n=i.chain,o=i.identity,s=i.trim,a=i.truncate,l=function(e){return e.replace(/{\$h\d}(.*?){\$h}/g,(function(e,t){return t}))};e.exports={getContentText:function(e,t){var r=n(e).get("blocks",[]).filter((function(e){return"atomic"!==e.type})).map((function(e){return s(e.text)})).map(l).filter(o).join(" ").value();return t?a(r,{length:t}):r}}},12526:(e,t,r)=>{"use strict";var i,n=Object.assign||function(e){for(var t=1;t-1})),i=t[r];return i?function(e){var t=a(e,"data.src");return t&&t.fallback?{file_name:t.file_name||t.fallback,width:c(t.width),height:c(t.height)}:t}(i)||function(e){var t=a(e,"data.items[0]");return t?{file_name:t.url,width:t.metadata?t.metadata.width:0,height:t.metadata?t.metadata.height:0}:{}}(i):void 0},g="VIDEO-EMBED",m="wix-draft-plugin-video",f=[g,m],y=((i={})[g]="data.oembed",i[m]="data.metadata.oembed",i),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=h(e),i=s(r,(function(e){return f.includes(e.type)&&(a(e,y[e.type]+".thumbnail_url")||a(e,"data.src.thumbnail"))})),o=r[i];return o?function(e){if(a(e,y[e.type]+".thumbnail_url")){var t=a(e,y[e.type]);return u(t.thumbnail_url,"//")?n({},t,{thumbnail_url:"https:"+t.thumbnail_url}):t}}(o)||function(e,t){var r=t.resizeThumbnail,i=t.getVideoUrl;if(r&&i){var n=a(e,"data.src"),o=a(e,"data.src.thumbnail");if(o){var s=r(o.pathname,o.width,o.height);return{thumbnail_url:s.url,thumbnail_height:s.height,thumbnail_width:s.width,video_url:i(n.pathname)}}}}(o,t):void 0},b=function(e){var t=a(e,"coverImage",{})||{},r=t.isEnabled,i=void 0===r||r,n=t.isCustom,o=void 0===n||n,s=t.src;return l(s)?{isEnabled:i,isCustom:!1}:{isEnabled:i,imageMetadata:s,isCustom:o}},S=function(e){var t=e.coverImage||{},r=t.isResolved,i=function(e,t){var r={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}(t,["isResolved"]);return!0===r?i:void 0};e.exports={getPostImageCover:p,getPostVideoEmbedCover:v,getCustomCoverImage:b,getPostCover:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=S(e);if(r)return r;var i=b(e),n=i.imageMetadata,o=i.videoMetadata,s=i.isCustom,l=i.isEnabled;return n||(n=p(e)),n||(o=v(e,t)),{shouldRender:Boolean(n||o)&&l,imageMetadata:n,videoMetadata:o,src:n||a(o,"thumbnail_url"),isEnabled:l,isCustom:s}},getResolvedCoverImage:S}},65074:e=>{"use strict";e.exports={numberOrZero:function(e){return Number(e)||0}}},98178:(e,t,r)=>{"use strict";r.d(t,{P1:()=>a});var i="NOT_FOUND";var n=function(e,t){return e===t};function o(e,t){var r,o,s="object"==typeof t?t:{equalityCheck:t},a=s.equalityCheck,l=void 0===a?n:a,u=s.maxSize,c=void 0===u?1:u,d=s.resultEqualityCheck,h=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var i=t.length,n=0;n-1){var o=r[n];return n>0&&(r.splice(n,1),r.unshift(o)),o.value}return i}return{get:n,put:function(t,o){n(t)===i&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(c,h);function g(){var t=p.get(arguments);if(t===i){if(t=e.apply(null,arguments),d){var r=p.getEntries().find((function(e){return d(e.value,t)}));r&&(t=r.value)}p.put(arguments,t)}return t}return g.clearCache=function(){return p.clear()},g}function s(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{"use strict";r.d(t,{eN:()=>s,ir:()=>a,th:()=>o});var i=r(44297);const n={[i.wA]:{title:{start:22,min:16,max:22},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.J9]:{title:{start:26,min:18,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.rB]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i._V]:{title:{start:26},description:{start:16},metadata:{start:12}},[i.dj]:{title:{start:40},description:{start:18},metadata:{start:14}},[i.Bt]:{title:{start:22},description:{start:16},metadata:{start:12}},[i.vb]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.po]:{title:{start:22,min:16,max:22},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.ue]:{title:{start:28,min:16,max:22},description:{start:16},metadata:{start:12}},[i.MM]:{title:{start:26,min:26,max:48},description:{start:16},metadata:{start:12}},[i.O4]:{title:{start:22,min:12,max:30},description:{start:14,min:12,max:18},metadata:{start:12}},[i.lF]:{title:{start:14,min:12,max:30},description:{start:14,min:12,max:18},metadata:{start:12}},[i.PS]:{title:{start:22,min:12,max:30},description:{start:16,min:12,max:18},metadata:{start:12}},[i.k2]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}},[i.IE]:{title:{start:26,min:26,max:48},description:{start:16},metadata:{start:12},mobile:{title:{start:22,min:20,max:48},description:{start:16},metadata:{start:12}}},[i.Sf]:{title:{start:28,min:26,max:48},description:{start:16},metadata:{start:12}},[i.yc]:{title:{start:26,min:18,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.wU]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.pf]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.z]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12},mobile:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}}},[i.fl]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}},[i.wQ]:{title:{start:22,min:26,max:48},description:{start:16},metadata:{start:12}},[i.rO]:{title:{start:28,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14}},[i.I7]:{title:{start:22,min:20,max:28},description:{start:16,min:12,max:16},metadata:{start:12,min:10,max:14},mobile:{title:{start:22,min:20,max:28},description:{start:14,min:12,max:16},metadata:{start:12,min:10,max:14}}},[i.Fs]:{title:{start:14},description:{start:14},metadata:{start:12},mobile:{title:{start:14},description:{start:14},metadata:{start:12}}},[i.Lq]:{title:{start:18},description:{start:14},metadata:{start:12}},[i.QG]:{title:{start:22},description:{start:14},metadata:{start:12}}},o=(e,t,r)=>{const i=r&&n[e].mobile;return i?i[t].start:n[e][t].start},s=(e,t)=>n[e][t].max,a=(e,t)=>n[e][t].min},21530:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var i=r(17607),n=r(84449),o=r(56814);const s={[o.v0]:!0,[o.G5]:!0,[o.aS]:!0,[o.vK]:!1,[o.Yi]:!0,[o.hA]:!0,[o.cD]:!0,[o.uC]:!0,[o.iJ]:!0,[o.A7]:!0,[o.lu]:!0,[o.ZQ]:!0,[o.hC]:!0,[o.Mk]:!0,[o.Ot]:!0,[o.yM]:!0,[o.Wk]:!0,[o.NY]:!0,[o.ON]:o.QY},a={[o.v0]:!1,[o.G5]:!1,[o.aS]:!1,[o.vK]:!1,[o.Yi]:!1,[o.hA]:!1,[o.cD]:!0,[o.uC]:!0,[o.iJ]:!1,[o.A7]:!0,[o.ZQ]:!0,[o.lu]:!1,[o.hC]:!1,[o.Mk]:!1,[o.Ot]:!1,[o.yM]:!1,[o.Wk]:!0,[o.NY]:!0,[o.ON]:o.QY},l={[o.v0]:!1,[o.G5]:!1,[o.aS]:!1,[o.vK]:!1,[o.Yi]:!1,[o.hA]:!1,[o.cD]:!0,[o.uC]:!1,[o.iJ]:!1,[o.A7]:!1,[o.lu]:!1,[o.ZQ]:!1,[o.hC]:!1,[o.Mk]:!1,[o.Ot]:!1,[o.yM]:!1,[o.Wk]:!0,[o.NY]:!1,[o.ON]:o.QY},u={[n.gN]:s,[n.V3]:s,[n.WB]:s,[n.dj]:s,[n.a7]:l,[n.AP]:a},c=(e,t=n.gN)=>(0,i.get)(u,[t,e])},44297:(e,t,r)=>{"use strict";r.d(t,{$b:()=>te,Ar:()=>i,Bo:()=>Q,Bt:()=>g,Fs:()=>A,I7:()=>x,IE:()=>b,Ip:()=>q,J9:()=>c,Lq:()=>T,MM:()=>k,O4:()=>m,OL:()=>ie,PS:()=>y,QG:()=>L,Sf:()=>S,Sp:()=>ne,Ty:()=>l,Ub:()=>ee,Ug:()=>re,Vp:()=>Y,_V:()=>h,dj:()=>p,fl:()=>E,hN:()=>D,jP:()=>K,k2:()=>v,lF:()=>f,lI:()=>V,pF:()=>W,pf:()=>_,po:()=>R,rB:()=>d,rO:()=>O,rf:()=>X,ue:()=>N,ut:()=>J,vV:()=>$,vb:()=>M,wA:()=>u,wQ:()=>I,wU:()=>w,yc:()=>P,z:()=>C});var i,n,o,s=r(17607),a=r(84449);!function(e){e[e.CardProfile=3]="CardProfile",e[e.FullPost=4]="FullPost",e[e.Mobile=5]="Mobile",e[e.OneColumnMobile=10]="OneColumnMobile",e[e.SideBySideMobile=11]="SideBySideMobile",e[e.TextOnImageMobile=12]="TextOnImageMobile",e[e.PgTextOnImageSmall=23]="PgTextOnImageSmall",e[e.PgTextOnImageMedium=13]="PgTextOnImageMedium",e[e.PgTextOnImageLarge=24]="PgTextOnImageLarge",e[e.PgCardMedium=14]="PgCardMedium",e[e.PgSideBySide=15]="PgSideBySide",e[e.PgSideBySideRight=22]="PgSideBySideRight",e[e.PgGrid=16]="PgGrid",e[e.PgGridIntermediate=20]="PgGridIntermediate",e[e.PgGridLarge=21]="PgGridLarge",e[e.PgOneColumn=17]="PgOneColumn",e[e.Slider=18]="Slider",e[e.List=19]="List",e[e.ListMedium=25]="ListMedium",e[e.ListLarge=26]="ListLarge",e[e.CardSmall=0]="CardSmall",e[e.CardMedium=1]="CardMedium",e[e.CardLarge=2]="CardLarge",e[e.SideBySide=6]="SideBySide",e[e.Grid=7]="Grid",e[e.TextOnImageSmall=8]="TextOnImageSmall",e[e.TextOnImageMedium=9]="TextOnImageMedium"}(i||(i={})),function(e){e.CardSmall="small",e.CardMedium="medium",e.CardLarge="large",e.CardProfile="profile",e.FullPost="full",e.SideBySide="side-by-side",e.Grid="grid",e.TextOnImageSmall="text-on-image-small",e.TextOnImageMedium="text-on-image-medium",e.PgTextOnImageSmall="pg-text-on-image-small",e.PgTextOnImageMedium="pg-text-on-image-medium",e.PgTextOnImageLarge="pg-text-on-image-large",e.PgCardMedium="pg-medium",e.PgSideBySide="pg-side-by-side",e.PgSideBySideRight="pg-side-by-side-right",e.PgGrid="pg-grid",e.PgGridIntermediate="pg-grid-intermediate",e.PgGridLarge="pg-grid-large",e.PgOneColumn="pg-one-column",e.Slider="slider",e.List="list",e.ListMedium="list-medium",e.ListLarge="list-large",e.Mobile="mobile",e.OneColumnMobile="one-column-mobile",e.SideBySideMobile="side-by-side-mobile",e.TextOnImageMobile="text-on-image-mobile"}(n||(n={})),function(e){e[e.CardMedium=1]="CardMedium",e[e.SideBySide=6]="SideBySide",e[e.TextOnImageMedium=9]="TextOnImageMedium",e[e.Grid=7]="Grid",e[e.CardSmall=0]="CardSmall",e[e.TextOnImageSmall=8]="TextOnImageSmall",e[e.CardLarge=2]="CardLarge"}(o||(o={}));const l=i.Grid,u=i.CardSmall,c=i.CardMedium,d=i.CardLarge,h=i.CardProfile,p=i.FullPost,g=i.Mobile,m=i.OneColumnMobile,f=i.SideBySideMobile,y=i.TextOnImageMobile,v=i.PgTextOnImageSmall,b=i.PgTextOnImageMedium,S=i.PgTextOnImageLarge,P=i.PgCardMedium,w=i.PgSideBySide,_=i.PgSideBySideRight,C=i.PgGrid,E=i.PgGridIntermediate,I=i.PgGridLarge,O=i.PgOneColumn,x=i.Slider,A=i.List,T=i.ListMedium,L=i.ListLarge,M=i.SideBySide,R=i.Grid,N=i.TextOnImageSmall,k=i.TextOnImageMedium,D=(n.CardSmall,n.CardMedium,n.CardLarge,n.CardProfile,n.FullPost,n.Mobile,n.SideBySide,n.Grid,n.TextOnImageSmall,n.TextOnImageMedium,n.OneColumnMobile,n.SideBySideMobile,n.TextOnImageMobile,n.PgTextOnImageSmall,n.PgTextOnImageMedium,n.PgTextOnImageLarge,n.PgCardMedium,n.PgSideBySide,n.PgSideBySideRight,n.PgGrid),Z=(n.PgGridIntermediate,n.PgGridLarge,n.PgOneColumn,n.Slider,n.List,n.ListMedium,n.ListLarge,n.Mobile,n.OneColumnMobile,n.SideBySideMobile,n.TextOnImageMobile,{[i.CardSmall]:n.CardSmall,[i.CardMedium]:n.CardMedium,[i.CardLarge]:n.CardLarge,[i.FullPost]:n.FullPost,[i.SideBySide]:n.SideBySide,[i.Grid]:n.Grid,[i.TextOnImageSmall]:n.TextOnImageSmall,[i.TextOnImageMedium]:n.TextOnImageMedium,[i.TextOnImageMobile]:n.TextOnImageMobile,[i.PgTextOnImageSmall]:n.PgTextOnImageSmall,[i.PgTextOnImageMedium]:n.PgTextOnImageMedium,[i.PgTextOnImageLarge]:n.PgTextOnImageLarge,[i.PgCardMedium]:n.PgCardMedium,[i.PgSideBySide]:n.PgSideBySide,[i.PgSideBySideRight]:n.PgSideBySideRight,[i.PgGrid]:n.PgGrid,[i.PgGridIntermediate]:n.PgGridIntermediate,[i.PgGridLarge]:n.PgGridLarge,[i.PgOneColumn]:n.PgOneColumn,[i.List]:n.List,[i.ListMedium]:n.ListMedium,[i.ListLarge]:n.ListLarge,[i.Slider]:n.Slider}),H={[i.PgGrid]:n.PgGrid,[i.PgGridLarge]:n.PgGridLarge,[i.Slider]:n.Slider,[i.ListMedium]:n.ListMedium,[i.ListLarge]:n.ListLarge,[i.PgSideBySide]:n.PgSideBySide,[i.PgSideBySideRight]:n.PgSideBySideRight,[i.PgOneColumn]:n.PgOneColumn,[i.PgTextOnImageSmall]:n.PgTextOnImageSmall,[i.PgTextOnImageMedium]:n.PgTextOnImageMedium,[i.PgTextOnImageLarge]:n.PgTextOnImageLarge,[i.PgGridIntermediate]:n.PgGridIntermediate,[i.List]:n.List,[i.PgCardMedium]:n.PgCardMedium},B={[i.PgGrid]:n.PgGrid,[i.PgGridLarge]:n.PgGridLarge,[i.Slider]:n.Slider,[i.ListMedium]:n.ListMedium,[i.ListLarge]:n.ListLarge,[i.PgSideBySide]:n.PgSideBySide,[i.PgSideBySideRight]:n.PgSideBySideRight,[i.PgOneColumn]:n.PgOneColumn,[i.PgTextOnImageSmall]:n.PgTextOnImageSmall,[i.PgTextOnImageMedium]:n.PgTextOnImageMedium,[i.PgTextOnImageLarge]:n.PgTextOnImageLarge,[i.PgGridIntermediate]:n.PgGridIntermediate,[i.List]:n.List,[i.PgCardMedium]:n.PgCardMedium},W={[i.PgGrid]:i.PgGrid,[i.PgGridIntermediate]:i.PgGrid,[i.PgGridLarge]:i.PgGrid,[i.Slider]:i.Slider,[i.List]:i.List,[i.ListMedium]:i.List,[i.OneColumnMobile]:i.OneColumnMobile,[i.SideBySideMobile]:i.SideBySideMobile,[i.SideBySide]:i.SideBySideMobile,[i.ListLarge]:i.List,[i.PgSideBySide]:i.PgGrid,[i.PgSideBySideRight]:i.PgGrid,[i.PgTextOnImageMedium]:i.PgTextOnImageMedium,[i.PgTextOnImageSmall]:i.PgTextOnImageMedium,[i.PgTextOnImageLarge]:i.PgTextOnImageMedium,[i.PgOneColumn]:i.PgGrid,[i.PgCardMedium]:i.PgGrid},F={[i.PgSideBySide]:n.PgSideBySide},G=Object.assign(Object.assign(Object.assign(Object.assign({},Z),H),B),F),U=(a.gN,a.V3,a.WB,a.a7,a.AP,{[i.OneColumnMobile]:n.OneColumnMobile,[i.SideBySideMobile]:n.SideBySideMobile,[i.TextOnImageMobile]:n.TextOnImageMobile}),z={[i.CardProfile]:n.CardProfile,[i.Mobile]:n.Mobile};i.PgGrid,i.PgGridIntermediate,i.PgGridLarge,i.PgCardMedium,i.PgOneColumn,i.Slider,i.List,i.ListMedium,i.ListLarge;var j;function V(e){return e?G[e]:void 0}!function(e){e[e.ImageLeft=0]="ImageLeft",e[e.ImageRight=1]="ImageRight",e[e.ImageNone=2]="ImageNone"}(j||(j={}));const K=e=>G[e]||U[e]||z[e],q=e=>Number(e)===i.PgOneColumn,X=e=>Number(e)===i.PgSideBySide||Number(e)===i.PgSideBySideRight,$=e=>Number(e)===i.FullPost,Y=e=>(0,s.includes)([i.TextOnImageSmall,i.TextOnImageMedium,i.TextOnImageMobile,i.PgTextOnImageSmall,i.PgTextOnImageMedium,i.PgTextOnImageLarge],Number(e)),Q=e=>Number(e)===i.Slider,J=e=>Number(e)===i.List||Number(e)===i.ListMedium||Number(e)===i.ListLarge,ee=e=>(0,s.includes)([i.Mobile,i.OneColumnMobile,i.SideBySideMobile,i.TextOnImageMobile],Number(e)),te=e=>(0,s.includes)([n.PgSideBySide,n.PgSideBySideRight],e),re=e=>e===n.PgOneColumn,ie=e=>(0,s.includes)([n.List,n.ListMedium,n.ListLarge],e),ne=e=>(0,s.includes)([n.TextOnImageSmall,n.TextOnImageMedium,n.TextOnImageMobile,n.PgTextOnImageSmall,n.PgTextOnImageMedium,n.PgTextOnImageLarge],e)},53505:(e,t,r)=>{"use strict";r.d(t,{CV:()=>n,FP:()=>l,JA:()=>s,P3:()=>i,Y1:()=>u,_N:()=>c,aY:()=>d,eC:()=>a,r9:()=>o});const i="subscribe",n="edit",o="share",s="print",a="pin",l="toggle-comments",u="delete",c="duplicate",d=[i,n,o,s,a,"revert-to-draft",l,"report",u,"translate","change-language"]},3495:(e,t,r)=>{"use strict";r.d(t,{Q5:()=>u,SB:()=>l,mU:()=>s,nH:()=>a,ol:()=>n,os:()=>i,wf:()=>o});const i="PostListMasonry",n="PostListSimple",o="PostListMobile",s="PostListItem",a="SideBySideMobile",l="TextOnImageMobile",u="Post"},18171:(e,t,r)=>{"use strict";r.d(t,{KG:()=>n,RW:()=>o,il:()=>i});const i=200,n=480,o={published:"published",unpublished:"unpublished",scheduled:"scheduled",deleted:"deleted",in_moderation:"in_moderation",in_review:"in_review"}},54570:(e,t,r)=>{"use strict";r.d(t,{BZ:()=>c,Eq:()=>ve,HN:()=>f,KT:()=>I,LS:()=>u,MI:()=>q,NJ:()=>b,TN:()=>h,U5:()=>_,bs:()=>O,gw:()=>m,hP:()=>V,hT:()=>K,lX:()=>E,ls:()=>p,lv:()=>w,pI:()=>l,qT:()=>v,rc:()=>d,rs:()=>C,sY:()=>y,uZ:()=>P,xt:()=>g,yX:()=>S});var i=r(44297),n=r(84449);const o=2,s=3,a=6;var l,u;!function(e){e.Crop="0",e.Max="1"}(l||(l={})),function(e){e[e.Proportional=0]="Proportional",e[e.Fixed=1]="Fixed"}(u||(u={}));const c={MANUAL:0,AUTO:1};var d;!function(e){e[e.FitToScreen=0]="FitToScreen",e[e.ItemsPerRow=1]="ItemsPerRow"}(d||(d={}));const h="DEFAULT_PG_LAYOUT_IMAGE_RATIO",p="DEFAULT_PG_LAYOUT_ITEM_SIZE",g="DEFAULT_PG_LAYOUT_CARDS_ROW_TYPE",m="DEFAULT_PG_LAYOUT_POSTS_PER_ROW",f="DEFAULT_PG_LAYOUT_INFO_SIZE",y="DEFAULT_PG_LAYOUT_INFO_SIZE_TYPE",v="DEFAULT_PG_LAYOUT_SPACING",b="DEFAULT_PG_LAYOUT_SIDES_PADDING",S="DEFAULT_PG_LAYOUT_MARGINS",P="DEFAULT_PG_IMAGE_ALIGNMENT",w="DEFAULT_PG_IMAGE_PROPORTIONS",_="DEFAULT_PG_IMAGE_WIDTH",C="DEFAULT_PG_IMAGE_RESIZING_MODE",E="DEFAULT_PG_LAYOUT_IMAGE_CROP_TYPE",I="DEFAULT_PG_LAYOUT_TITLE_LINE_COUNT",O="DEFAULT_PG_LAYOUT_DESCRIPTION_LINE_COUNT",x="MIN_PG_LAYOUT_SPACNG",A="MIN_PG_LAYOUT_ITEM_SIZE",T="MIN_PG_LAYOUT_POSTS_PER_ROW",L="MIN_PG_LAYOUT_INFO_SIZE",M="MIN_PG_LAYOUT_SIDES_PADDING",R="MIN_PG_LAYOUT_MARGINS",N="MIN_PG_LAYOUT_TITLE_LINE_COUNT",k="MIN_PG_LAYOUT_DESCRIPTION_LINE_COUNT",D="MIN_PG_IMAGE_PROPORTIONS",Z="MAX_PG_LAYOUT_ITEM_SIZE",H="MAX_PG_LAYOUT_POSTS_PER_ROW",B="MAX_PG_LAYOUT_INFO_SIZE",W="MAX_PG_LAYOUT_SPACNG",F="MAX_PG_LAYOUT_SIDES_PADDING",G="MAX_PG_LAYOUT_MARGINS",U="MAX_PG_LAYOUT_TITLE_LINE_COUNT",z="MAX_PG_LAYOUT_DESCRIPTION_LINE_COUNT",j="MAX_PG_IMAGE_PROPORTIONS",V="DEFAULT_PG_LAYOUT_SPACING_MOBILE",K="DEFAULT_PG_LAYOUT_MARGINS_MOBILE",q="DEFAULT_PG_LAYOUT_IMAGE_RATIO_MOBILE",X={[x]:0,[A]:150,[T]:1,[M]:0,[R]:0,[N]:1,[W]:100,[Z]:1e3,[H]:5,[F]:100,[G]:100,[U]:6,[h]:3,[p]:454,[g]:d.FitToScreen,[m]:3,[v]:32,[b]:30,[S]:20,[E]:0,[I]:3,[V]:20,[K]:0,[q]:3},$=Object.assign(Object.assign({},X),{[p]:292,[b]:24}),Y=Object.assign(Object.assign({},X),{[h]:1,[p]:1e3}),Q={[x]:0,[A]:150,[T]:1,[M]:0,[R]:0,[N]:1,[W]:100,[Z]:1e3,[H]:5,[F]:100,[G]:100,[U]:6,[h]:s,[p]:454,[g]:d.ItemsPerRow,[m]:3,[v]:24,[b]:24,[S]:0,[E]:l.Crop,[I]:3,[V]:20,[K]:0,[q]:3},J={[x]:0,[A]:150,[T]:1,[L]:0,[M]:0,[R]:0,[N]:1,[k]:1,[W]:100,[Z]:1e3,[H]:5,[B]:700,[F]:100,[G]:100,[U]:6,[z]:8,[p]:454,[g]:d.FitToScreen,[m]:3,[f]:350,[y]:c.MANUAL,[v]:32,[b]:30,[S]:20,[I]:3,[O]:3},ee={[A]:450,[x]:0,[M]:0,[R]:0,[D]:20,[N]:1,[k]:1,[Z]:1200,[W]:100,[F]:100,[G]:100,[j]:60,[U]:6,[z]:8,[p]:1100,[v]:32,[b]:36,[S]:20,[w]:50,[C]:u.Proportional,[P]:2,[h]:2,[E]:0,[I]:3,[O]:3},te=Object.assign(Object.assign({},ee),{[P]:1}),re={[p]:980,[v]:24,[b]:30,[S]:30,[_]:177,[C]:u.Fixed,[P]:2,[h]:3,[E]:0,[I]:2,[O]:0},ie={[A]:450,[x]:0,[M]:0,[R]:0,[D]:20,[N]:1,[k]:1,[Z]:1200,[W]:100,[F]:100,[G]:100,[j]:60,[U]:6,[z]:8,[p]:1100,[v]:24,[b]:24,[S]:0,[w]:30,[C]:u.Proportional,[P]:2,[h]:o,[E]:l.Crop,[I]:3,[O]:3},ne={[x]:0,[A]:150,[T]:1,[L]:0,[M]:0,[R]:0,[N]:1,[k]:1,[W]:100,[Z]:1e3,[H]:5,[B]:700,[F]:100,[G]:100,[U]:6,[z]:8,[h]:2,[p]:292,[g]:d.FitToScreen,[m]:3,[f]:350,[y]:c.MANUAL,[v]:32,[b]:24,[S]:20,[E]:0,[I]:3,[O]:3,[V]:20,[K]:0,[q]:2},oe={[x]:0,[A]:150,[T]:1,[L]:0,[M]:0,[R]:0,[N]:1,[k]:1,[W]:100,[Z]:1e3,[H]:5,[B]:700,[F]:100,[G]:100,[U]:6,[z]:8,[h]:o,[p]:292,[g]:d.ItemsPerRow,[m]:3,[f]:350,[y]:c.AUTO,[v]:24,[b]:24,[S]:0,[E]:l.Crop,[I]:3,[O]:3,[V]:20,[K]:0,[q]:2},se=Object.assign(Object.assign({},ne),{[p]:454}),ae=Object.assign(Object.assign({},ne),{[h]:1,[p]:1e3}),le={[x]:0,[M]:0,[R]:0,[L]:0,[N]:1,[k]:1,[W]:100,[F]:100,[G]:100,[B]:700,[U]:6,[z]:8,[v]:32,[b]:48,[S]:20,[h]:6,[f]:350,[y]:c.MANUAL,[I]:3,[O]:3},ue={[x]:0,[M]:0,[R]:0,[L]:0,[N]:1,[k]:1,[W]:100,[F]:100,[G]:100,[B]:700,[U]:6,[z]:8,[v]:24,[b]:24,[S]:0,[h]:a,[f]:350,[y]:c.AUTO,[I]:3,[O]:3},ce={[x]:0,[A]:150,[T]:1,[M]:0,[R]:0,[L]:0,[D]:20,[N]:1,[k]:1,[W]:100,[Z]:1e3,[H]:5,[F]:100,[G]:100,[B]:300,[j]:80,[U]:6,[z]:8,[v]:12,[p]:292,[g]:d.FitToScreen,[m]:3,[f]:100,[b]:12,[S]:0,[h]:3,[w]:25,[C]:u.Proportional,[P]:1,[E]:0,[I]:3,[O]:3,[V]:20,[K]:0,[q]:3},de={[x]:0,[A]:150,[T]:1,[M]:0,[R]:0,[L]:0,[D]:20,[N]:1,[k]:1,[W]:100,[Z]:1e3,[H]:5,[F]:100,[G]:100,[B]:300,[j]:80,[U]:6,[z]:8,[v]:24,[p]:292,[g]:d.ItemsPerRow,[m]:3,[f]:100,[y]:c.MANUAL,[b]:12,[S]:0,[h]:s,[w]:25,[C]:u.Proportional,[P]:1,[E]:l.Crop,[I]:3,[O]:3,[V]:20,[K]:0,[q]:3},he=Object.assign(Object.assign({},ce),{[p]:454,[f]:60,[S]:20,[v]:24,[P]:2,[b]:24}),pe=Object.assign(Object.assign({},ce),{[p]:1e3,[f]:25,[S]:20,[v]:24,[P]:2,[b]:24}),ge={[v]:20,[p]:280,[g]:d.FitToScreen,[m]:1,[f]:60,[b]:12,[S]:0,[h]:3,[w]:32,[C]:u.Proportional,[P]:2,[E]:0,[I]:3},me={[L]:0,[M]:0,[R]:0,[N]:1,[k]:1,[B]:700,[F]:48,[G]:100,[U]:6,[z]:8,[f]:230,[y]:c.MANUAL,[b]:24,[S]:0,[h]:1,[E]:0,[I]:3,[O]:3,[K]:0,[q]:2},fe={[L]:0,[M]:0,[R]:0,[N]:1,[k]:1,[B]:700,[F]:48,[G]:100,[U]:6,[z]:8,[f]:230,[y]:c.AUTO,[b]:24,[S]:0,[h]:o,[E]:l.Crop,[I]:3,[O]:3,[K]:0,[q]:2},ye={[i.k2]:{[n.gN]:$,[n.V3]:$,[n.WB]:$,[n.dj]:$,[n.a7]:$,[n.AP]:$},[i.IE]:{[n.gN]:X,[n.V3]:X,[n.WB]:X,[n.dj]:X,[n.a7]:Q,[n.AP]:X},[i.Sf]:{[n.gN]:Y,[n.V3]:Y,[n.WB]:Y,[n.dj]:Y,[n.a7]:Y,[n.AP]:Y},[i.yc]:{[n.gN]:J,[n.V3]:J,[n.WB]:J,[n.dj]:J,[n.a7]:J,[n.AP]:J},[i.wU]:{[n.gN]:ee,[n.V3]:ee,[n.WB]:ee,[n.dj]:ee,[n.a7]:ie,[n.AP]:re},[i.pf]:{[n.gN]:te,[n.V3]:te,[n.WB]:te,[n.dj]:te,[n.a7]:te,[n.AP]:re},[i.z]:{[n.gN]:ne,[n.V3]:ne,[n.WB]:ne,[n.dj]:ne,[n.a7]:oe,[n.AP]:ne},[i.fl]:{[n.gN]:se,[n.V3]:se,[n.WB]:se,[n.dj]:se,[n.a7]:se,[n.AP]:se},[i.wQ]:{[n.gN]:ae,[n.V3]:ae,[n.WB]:ae,[n.dj]:ae,[n.a7]:ae,[n.AP]:ae},[i.rO]:{[n.gN]:le,[n.V3]:le,[n.WB]:le,[n.dj]:le,[n.a7]:ue,[n.AP]:le},[i.I7]:{[n.gN]:me,[n.V3]:me,[n.WB]:me,[n.dj]:me,[n.a7]:fe,[n.AP]:me},[i.Fs]:{[n.gN]:ce,[n.V3]:ce,[n.WB]:ce,[n.dj]:ce,[n.a7]:de,[n.AP]:ge},[i.Lq]:{[n.gN]:he,[n.V3]:he,[n.WB]:he,[n.dj]:he,[n.a7]:he,[n.AP]:he},[i.QG]:{[n.gN]:pe,[n.V3]:pe,[n.WB]:pe,[n.dj]:pe,[n.a7]:pe,[n.AP]:pe}},ve=(e,t,r=n.gN)=>{var i;const o=null===(i=ye[e])||void 0===i?void 0:i[r];return null==o?void 0:o[t]}},50870:(e,t,r)=>{"use strict";r.d(t,{TR:()=>o,TW:()=>s,Vf:()=>n,vt:()=>i});const i="categories",n="hashtags",o="archive",s="tags"},84449:(e,t,r)=>{"use strict";r.d(t,{AP:()=>l,LQ:()=>u,V3:()=>n,WB:()=>s,a7:()=>a,dj:()=>o,gN:()=>i});const i="homepage",n="category",o="tags",s="post-list",a="related-posts",l="my-posts",u=[i,n]},57976:(e,t,r)=>{"use strict";r.d(t,{gW:()=>a,ve:()=>l});const i="facebook",n="twitter",o="linked-in",s="link",a="print",l=[i,n,o,s]},75781:(e,t,r)=>{"use strict";r.d(t,{z:()=>i});const i="PRIVATE"},48063:(e,t,r)=>{"use strict";r.d(t,{Lg:()=>i,Ln:()=>o,P1:()=>n});const i="editor",n="preview",o="site"},56814:(e,t,r)=>{"use strict";r.d(t,{A7:()=>E,BG:()=>c,CK:()=>ge,Cu:()=>n,EW:()=>f,G5:()=>u,GD:()=>J,GU:()=>ue,HJ:()=>S,HX:()=>X,IG:()=>de,JW:()=>ne,K2:()=>h,K_:()=>he,Kr:()=>F,Li:()=>O,MH:()=>T,MU:()=>me,Mk:()=>m,NY:()=>V,ON:()=>b,Ot:()=>p,PQ:()=>pe,Pz:()=>g,QY:()=>P,Qw:()=>B,SZ:()=>Z,TZ:()=>Q,U0:()=>k,UH:()=>w,Uv:()=>R,WT:()=>v,Wk:()=>G,XG:()=>C,Yi:()=>L,ZQ:()=>N,ZS:()=>l,Zx:()=>Y,aS:()=>d,aU:()=>se,c:()=>fe,cD:()=>M,eG:()=>j,feedWidgetStyleParams:()=>s,gS:()=>x,hA:()=>W,hC:()=>D,iJ:()=>A,iU:()=>te,is:()=>$,lu:()=>_,qG:()=>oe,qb:()=>ce,qe:()=>K,rk:()=>re,s0:()=>q,s4:()=>ee,ss:()=>z,sy:()=>le,uC:()=>H,v0:()=>a,vE:()=>I,vK:()=>U,wY:()=>ae,xN:()=>ie,yM:()=>y});var i,n,o=r(31853);!function(e){e[e.NameAndPicture=0]="NameAndPicture",e[e.Name=1]="Name"}(i||(i={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(n||(n={}));const s={"banner-isEnabled":{defaultValue:!1,key:"banner-isEnabled"},"blog-authorInfoType":{key:"blog-authorInfoType"},"blog-isAnonymousCommentsEnabled":{key:"blog-isAnonymousCommentsEnabled"},"blog-isAuthorBadgeEnabled":{key:"blog-isAuthorBadgeEnabled"},"blog-isAuthorNameEnabled":{key:"blog-isAuthorNameEnabled"},"blog-isAuthorPictureEnabled":{key:"blog-isAuthorPictureEnabled"},"blog-isCategoryLabelEnabled":{key:"blog-isCategoryLabelEnabled"},"blog-isCategoryLabelsEnabled":{key:"blog-isCategoryLabelsEnabled"},"blog-isCommentCountEnabled":{key:"blog-isCommentCountEnabled"},"blog-isCommentsEnabled":{key:"blog-isCommentsEnabled"},"blog-isCoverImageEnabled":{key:"blog-isCoverImageEnabled"},"blog-isLikeCountEnabled":{key:"blog-isLikeCountEnabled"},"blog-isMoreOptionsMenuEnabled":{key:"blog-isMoreOptionsMenuEnabled"},"blog-isPostDateEnabled":{key:"blog-isPostDateEnabled"},"blog-isPostDescriptionEnabled":{key:"blog-isPostDescriptionEnabled"},"blog-isPostListFullWidthEnabled":{key:"blog-isPostListFullWidthEnabled"},"blog-isPostPublishDateEnabled":{key:"blog-isPostPublishDateEnabled"},"blog-isPostRatingEnabled":{key:"blog-isPostRatingEnabled"},"blog-isPostTitleEnabled":{key:"blog-isPostTitleEnabled"},"blog-isPostUpdatedDateEnabled":{key:"blog-isPostUpdatedDateEnabled"},"blog-isReadingTimeEnabled":{key:"blog-isReadingTimeEnabled"},"blog-isRecentPostsEnabled":{key:"blog-isRecentPostsEnabled"},"blog-isTagsEnabled":{key:"blog-isTagsEnabled"},"blog-isViewCountEnabled":{key:"blog-isViewCountEnabled"},"blog-mobile-authorInfoType":{key:"blog-mobile-authorInfoType"},"blog-mobile-isAuthorBadgeEnabled":{key:"blog-mobile-isAuthorBadgeEnabled"},"blog-mobile-isAuthorNameEnabled":{key:"blog-mobile-isAuthorNameEnabled"},"blog-mobile-isAuthorPictureEnabled":{key:"blog-mobile-isAuthorPictureEnabled"},"blog-mobile-isCategoryLabelEnabled":{key:"blog-mobile-isCategoryLabelEnabled"},"blog-mobile-isCategoryLabelsEnabled":{key:"blog-mobile-isCategoryLabelsEnabled"},"blog-mobile-isCommentCountEnabled":{key:"blog-mobile-isCommentCountEnabled"},"blog-mobile-isCommentsEnabled":{key:"blog-mobile-isCommentsEnabled"},"blog-mobile-isCoverImageEnabled":{key:"blog-mobile-isCoverImageEnabled"},"blog-mobile-isLikeCountEnabled":{key:"blog-mobile-isLikeCountEnabled"},"blog-mobile-isMobileDisplaySettingsEnabled":{key:"blog-mobile-isMobileDisplaySettingsEnabled"},"blog-mobile-isMoreOptionsMenuEnabled":{key:"blog-mobile-isMoreOptionsMenuEnabled"},"blog-mobile-isPostDateEnabled":{key:"blog-mobile-isPostDateEnabled"},"blog-mobile-isPostDescriptionEnabled":{key:"blog-mobile-isPostDescriptionEnabled"},"blog-mobile-isPostPublishDateEnabled":{key:"blog-mobile-isPostPublishDateEnabled"},"blog-mobile-isPostRatingEnabled":{key:"blog-mobile-isPostRatingEnabled"},"blog-mobile-isPostTitleEnabled":{key:"blog-mobile-isPostTitleEnabled"},"blog-mobile-isPostUpdatedDateEnabled":{key:"blog-mobile-isPostUpdatedDateEnabled"},"blog-mobile-isReadingTimeEnabled":{key:"blog-mobile-isReadingTimeEnabled"},"blog-mobile-isRecentPostsEnabled":{key:"blog-mobile-isRecentPostsEnabled"},"blog-mobile-isTagsEnabled":{key:"blog-mobile-isTagsEnabled"},"blog-mobile-isViewCountEnabled":{key:"blog-mobile-isViewCountEnabled"},"blogMenu-isCategoryLabelsEnabled":{key:"blogMenu-isCategoryLabelsEnabled"},"blogMenu-isEnabled":{key:"blogMenu-isEnabled"},"blogMenu-isSearchEnabled":{key:"blogMenu-isSearchEnabled"},"blogMenu-mobile-isCategoryLabelsEnabled":{key:"blogMenu-mobile-isCategoryLabelsEnabled"},"blogMenu-mobile-isEnabled":{key:"blogMenu-mobile-isEnabled"},"blogMenu-mobile-isLoginButtonEnabled":{key:"blogMenu-mobile-isLoginButtonEnabled"},"blogMenu-mobile-isSearchEnabled":{key:"blogMenu-mobile-isSearchEnabled"},"categoryHeader-isEnabled":{key:"categoryHeader-isEnabled"},contentAlignment:{defaultValue:n.Left,key:"contentAlignment"},contentAlignmentMobile:{defaultValue:n.Left,key:"contentAlignmentMobile"},feedBackgroundColor:{defaultOpacity:0,defaultValue:"color-5",key:"feedBackgroundColor"},feedSliderArrowsColor:{defaultValue:"color-5",key:"feedSliderArrowsColor"},feedSliderArrowsPosition:{defaultValue:o.$G.OnGallery,key:"feedSliderArrowsPosition",options:o.yL},feedSliderArrowsSize:{defaultValue:18,key:"feedSliderArrowsSize",maxValue:180,minValue:6},feedSliderAutoSlide:{defaultValue:!1,key:"feedSliderAutoSlide"},feedSliderLoop:{defaultValue:!1,key:"feedSliderLoop"},feedSliderPauseTime:{defaultValue:4,key:"feedSliderPauseTime",maxValue:10,minValue:1},feedSliderShowArrows:{defaultValue:!0,key:"feedSliderShowArrows"},"navigation-backgroundColor":{defaultValue:"rgba(255,255,255,1)",key:"navigation-backgroundColor"},"navigation-textColor":{key:"navigation-textColor"},"navigation-textColorActive":{key:"navigation-textColorActive"},"pinterest-isEnabled":{key:"pinterest-isEnabled"},"socialSharing-isEnabled":{key:"socialSharing-isEnabled"},"socialSharing-mobile-isEnabled":{key:"socialSharing-mobile-isEnabled"},"twitter-isEnabled":{key:"twitter-isEnabled"},"widget-isLoginButtonEnabled":{key:"widget-isLoginButtonEnabled"}},a="blog-isViewCountEnabled",l=`style.booleans.${a}`,u="blog-isCommentCountEnabled",c=`style.booleans.${u}`,d="blog-isLikeCountEnabled",h=`style.booleans.${d}`,p="blog-isAuthorNameEnabled",g=`style.booleans.${p}`,m="blog-isAuthorPictureEnabled",f=`style.booleans.${m}`,y="blog-isAuthorBadgeEnabled",v=`style.booleans.${y}`,b="blog-authorInfoType",S=`style.numbers.${b}`,P=0,w=1,_="blog-isPostDateEnabled",C=`style.booleans.${_}`,E="blog-isPostUpdatedDateEnabled",I=`style.booleans.${E}`,O="style.booleans.blog-isRecentPostsEnabled",x="style.booleans.blog-isCommentsEnabled",A="blog-isCategoryLabelsEnabled",T=`style.booleans.${A}`,L="blog-isTagsEnabled",M="blog-isPostTitleEnabled",R=`style.booleans.${M}`,N="blog-isPostPublishDateEnabled",k=`style.booleans.${N}`,D="blog-isReadingTimeEnabled",Z=`style.booleans.${D}`,H="blog-isMoreOptionsMenuEnabled",B=`style.booleans.${H}`,W="blog-isPostDescriptionEnabled",F=`style.booleans.${W}`,G="blog-isCoverImageEnabled",U="blog-isCategoryLabelEnabled",z=`style.booleans.${U}`,j="style.booleans.blog-mobile-isCategoryLabelEnabled",V="blog-isPostRatingEnabled",K=`style.booleans.${V}`,q="style.booleans.blog-mobile-isPostRatingEnabled",X="style.booleans.blog-isPostListFullWidthEnabled",$="style.booleans.blog-mobile-isMobileDisplaySettingsEnabled",Y="style.booleans.blog-mobile-isViewCountEnabled",Q="style.booleans.blog-mobile-isMoreOptionsMenuEnabled",J="style.booleans.blog-mobile-isCommentCountEnabled",ee="style.booleans.blog-mobile-isLikeCountEnabled",te="style.booleans.blog-mobile-isAuthorNameEnabled",re="style.booleans.blog-mobile-isAuthorPictureEnabled",ie="style.booleans.blog-mobile-isAuthorBadgeEnabled",ne="style.numbers.blog-mobile-authorInfoType",oe="style.booleans.blog-mobile-isPostDateEnabled",se="style.booleans.blog-mobile-isPostUpdatedDateEnabled",ae="style.booleans.blog-mobile-isRecentPostsEnabled",le="style.booleans.blog-mobile-isCommentsEnabled",ue="style.booleans.blog-mobile-isCategoryLabelsEnabled",ce="style.booleans.blog-mobile-isPostTitleEnabled",de="style.booleans.blog-mobile-isPostPublishDateEnabled",he="style.booleans.blog-mobile-isReadingTimeEnabled",pe="style.booleans.blog-mobile-isPostDescriptionEnabled",ge="style.booleans.socialSharing-mobile-isEnabled",me="style.booleans.socialSharing-isEnabled",fe=(e,t=!1)=>`style.booleans.${((e,t=!1)=>`socialSharing-${t?"mobile-":""}${e}`)(e,t)}`},61699:(e,t,r)=>{"use strict";r.d(t,{Al:()=>O,G9:()=>D,HR:()=>A,Ii:()=>x,LF:()=>T,O4:()=>H,S5:()=>B,S6:()=>s,S9:()=>L,UA:()=>N,b7:()=>n,c7:()=>W,jH:()=>k,k4:()=>I,pn:()=>R,qF:()=>Z,sF:()=>M,uk:()=>o,yo:()=>E});r(17607);var i=r(44297);const n="style.booleans.blog-mobile-isMobileLayoutSettingsEnabled",o="style.booleans.blog-postDesignInFullpostEnabled",s=(e,t=!1)=>`style.numbers.${((e,t=!1)=>((e,t,r)=>`layout-${r?"mobile-":""}${e}-${"layoutType"}`)(e,0,t))(e,t)}`;function a(e){return function(t,r,i=!1){return`layout-${i?"mobile-":""}${t}-${r}-${e}`}}const l=e=>(t,r,i=!1)=>`style.numbers.${e(t,r,i)}`,u=a("layoutSpacing"),c=a("layoutPostSize"),d=a("layoutCardsRowType"),h=a("layoutPostsPerRow"),p=a("contentHeight"),g=a("contentHeightType"),m=a("margins"),f=a("titleLineCount"),y=a("descriptionLineCount"),v=a("sidesPadding"),b=a("imageRatio"),S=a("imageAlignment"),P=a("imageProportions"),w=a("imageCropType"),_=a("imageResizingMode"),C=a("imageWidth"),E=l(u),I=l(c),O=l(d),x=l(h),A=l(b),T=l(p),L=l(g),M=l(m),R=l(f),N=l(y),k=l(v),D=l(S),Z=l(P),H=l(w),B=l(_),W=l(C),F=(e=!1)=>({startWithColor:e?"#FFFFFF":"color-5",startWithTheme:"font_8",fontMinSize:12,fontMaxSize:24,startWithSize:14});i.J9,F(),i.vb,F(),i.MM,F(!0),i.po,F(),i.wA,F(),i.ue,F(!0),i.rB,F(),i.dj,F(),i.O4,F(),i.lF,F(),i.PS,F(),i.k2,F(!0),i.IE,F(!0),i.Sf,F(!0),i.yc,F(),i.wU,F(),i.pf,F(),i.z,F(),i.fl,F(),i.wQ,F(),i.rO,F(),i.Fs,F(),i.Lq,F(),i.QG,F(),i.I7,F(),i.wU,F()},26631:(e,t,r)=>{"use strict";r.d(t,{Yh:()=>n,bt:()=>i});const i=`page-${r(84449).AP}-borderWidth`,n=0},31853:(e,t,r)=>{"use strict";r.d(t,{$G:()=>a,CU:()=>y,D7:()=>p,HA:()=>c,HQ:()=>g,Iw:()=>o,ND:()=>f,Ow:()=>S,P8:()=>s,Ss:()=>u,XA:()=>v,bY:()=>b,uQ:()=>m,yL:()=>l});var i=r(44297),n=r(54570);const o={margins:10,sidesPadding:16,postSize:254,contentHeight:156,imageRatio:2,spacing:12,layoutName:i.hN,layoutType:i.z,layoutCardsRowType:n.rc.FitToScreen,layoutPostsPerRow:3};var s,a;!function(e){e.NumberOfPosts="0",e.Paginated="1"}(s||(s={})),function(e){e[e.OnGallery=0]="OnGallery",e[e.OutsideGallery=1]="OutsideGallery"}(a||(a={}));const l=e=>[{value:a.OnGallery,label:e("post-list-widget.layout-tab.slider-arrows-position-on-post")},{value:a.OutsideGallery,label:e("post-list-widget.layout-tab.slider-arrows-position-outside-post")}],u={postListWidgetBackgroundColor:{key:"postListWidgetBackgroundColor",defaultValue:"color-5",defaultOpacity:0},postListWidgetSliderArrowsColor:{key:"postListWidgetSliderArrowsColor",defaultValue:"color-5"},postListWidgetBackgroundColorMobile:{key:"postListWidgetBackgroundColorMobile",defaultValue:"color-5",defaultOpacity:0},postListWidgetSliderArrowsColorMobile:{key:"postListWidgetSliderArrowsColorMobile",defaultValue:"color-5"},postListWidgetIsFeatured:{key:"postListWidgetIsFeatured",defaultValue:!1},postListWidgetEntityCount:{key:"postListWidgetEntityCount",defaultValue:3,minValue:1,maxValue:50},postListWidgetPaginationType:{key:"postListWidgetPaginationType",defaultValue:s.NumberOfPosts,options:e=>[{value:s.NumberOfPosts,label:e("post-list-widget.settings-tab.pagination-number-of-posts")},{value:s.Paginated,label:e("post-list-widget.settings-tab.pagination-with-page-numbers")}]},postListWidgetPostsPerPage:{key:"postListWidgetPostsPerPage",defaultValue:3,minValue:1,maxValue:50},postListWidgetSliderLoop:{key:"postListWidgetSliderLoop",defaultValue:!1},postListWidgetSliderAutoSlide:{key:"postListWidgetSliderAutoSlide",defaultValue:!1},postListWidgetSliderPauseTime:{key:"postListWidgetSliderPauseTime",defaultValue:4,minValue:1,maxValue:10},postListWidgetSliderShowArrows:{key:"postListWidgetSliderShowArrows",defaultValue:!0},postListWidgetSliderArrowsPosition:{key:"postListWidgetSliderArrowsPosition",defaultValue:a.OnGallery,options:l},postListWidgetSliderArrowsSize:{key:"postListWidgetSliderArrowsSize",defaultValue:18,minValue:6,maxValue:180},postListWidgetSliderLoopMobile:{key:"postListWidgetSliderLoopMobile",defaultValue:!1},postListWidgetSliderAutoSlideMobile:{key:"postListWidgetSliderAutoSlideMobile",defaultValue:!0},postListWidgetSliderPauseTimeMobile:{key:"postListWidgetSliderPauseTimeMobile",defaultValue:4,minValue:1,maxValue:10},postListWidgetSliderShowArrowsMobile:{key:"postListWidgetSliderShowArrowsMobile",defaultValue:!0},postListWidgetSliderArrowsPositionMobile:{key:"postListWidgetSliderArrowsPositionMobile",defaultValue:a.OnGallery,options:l},postListWidgetSliderArrowsSizeMobile:{key:"postListWidgetSliderArrowsSizeMobile",defaultValue:18,maxValue:180,minValue:6}},c={desktop:{sliderLoop:u.postListWidgetSliderLoop,widgetBackgroundColor:u.postListWidgetBackgroundColor,sliderAutoSlide:u.postListWidgetSliderAutoSlide,sliderPauseTime:u.postListWidgetSliderPauseTime,sliderShowArrows:u.postListWidgetSliderShowArrows,sliderArrowsPosition:u.postListWidgetSliderArrowsPosition,sliderArrowsSize:u.postListWidgetSliderArrowsSize,sliderArrowsColor:u.postListWidgetSliderArrowsColor},mobile:{sliderLoop:u.postListWidgetSliderLoopMobile,widgetBackgroundColor:u.postListWidgetBackgroundColorMobile,sliderAutoSlide:u.postListWidgetSliderAutoSlideMobile,sliderPauseTime:u.postListWidgetSliderPauseTimeMobile,sliderShowArrows:u.postListWidgetSliderShowArrowsMobile,sliderArrowsPosition:u.postListWidgetSliderArrowsPositionMobile,sliderArrowsSize:u.postListWidgetSliderArrowsSizeMobile,sliderArrowsColor:u.postListWidgetSliderArrowsColorMobile}};s.NumberOfPosts,s.NumberOfPosts,s.Paginated;var d,h;!function(e){e[e.Related=0]="Related",e[e.Recent=1]="Recent"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Button=1]="Button"}(h||(h={}));d.Related,d.Related,h.Text,a.OnGallery,a.OnGallery;const p="style.booleans.blog-isRelatedPostsEnabled",g="style.booleans.blog-mobile-isRelatedPostsEnabled",m="style.booleans.blog-isRelatedPostsLabelEnabled",f="style.booleans.blog-mobile-isRelatedPostsLabelEnabled",y="style.numbers.relatedPostsLabel",v="style.numbers.mobile-relatedPostsLabel",b={related:0,recent:1},S={0:"related-posts.title",1:"recent-posts.title"};b.related},76173:(e,t,r)=>{"use strict";r.d(t,{$O:()=>o,BS:()=>d,H3:()=>m,O4:()=>f,P0:()=>p,QS:()=>h,es:()=>a,kJ:()=>v,qs:()=>u,sn:()=>g,t7:()=>l,tF:()=>y});var i=r(17607),n=r(44297);const o="style.booleans.blog-mobile-isMobileDesignSettingsEnabled",s="titleFontSize",a="style.booleans.blog-isFeedDesignPropsMigrated",l="style.booleans.blog-isConfigurableLineClampingEnabled",u=(...e)=>`post-${e.filter(i.identity).join("-")}`,c=(e,t,r,i=!1)=>u((0,n.jP)(e),t,i?"mobile":"",r),d=(e,t,r)=>c(e,t,s,r),h=(e,t,r)=>c(e,t,"descriptionFontSize",r),p=(...e)=>`style.numbers.${c(...e)}`,g=(e,t)=>`style.fonts.${u(e,t)}`,m=(...e)=>`style.numbers.${((e,t)=>`post-${(0,n.jP)(e)}-${t}-cardBorderWidth`)(...e)}`,f=e=>`style.colors.${(e=>`post-${e}-borderColor`)(e)}`,y=e=>`style.colors.${(e=>`post-${e}-mobile-borderColor`)(e)}`,v="style.numbers.post-cardBorderWidth"},34327:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});const i=e=>(null==e?void 0:e.id)?e.id:(null==e?void 0:e._id)?(console.log("[Wix Blog]",'No "id" field found',e),e._id):(null==e?void 0:e.internalId)?e.internalId:void 0},36991:(e,t,r)=>{"use strict";r.d(t,{GB:()=>s,ay:()=>n});r(17607);const i=e=>e.appConfig||{},n=e=>i(e).bundleName,o=(e,t)=>n(e)===t,s=e=>o(e,"post-page")},27628:(e,t,r)=>{"use strict";r.d(t,{IT:()=>u,hv:()=>c,mF:()=>l,ts:()=>a});var i=r(17607),n=r(98178),o=r(25945),s=r(75781);const a=e=>(0,i.get)(e,"auth.currentUser"),l=((0,n.P1)([a],(e=>e&&e.siteMemberId)),(0,n.P1)([a],(e=>e&&e.slug)),(0,n.P1)([a],(e=>e&&e.counters)),(0,n.P1)([a],(e=>Boolean(e&&e.isOwner)))),u=((0,n.P1)([a],(e=>(0,i.get)(e,`appStore[${o.BLOG_APP_ID}].permissions.role`,"guest"))),(0,n.P1)([a],(e=>Boolean(e&&e.isBlocked)))),c=(0,n.P1)([a],(e=>e&&e.privacyStatus===s.z))},92113:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});var i=r(17607);const n=(e,t,r)=>function(e,t,r){return r||(r="true"),(Array.isArray(r)?r:[r]).includes((0,i.get)(e,t))}((e=>{var t;return null!==(t=e.experiments)&&void 0!==t?t:{}})(e),t,r)},7027:(e,t,r)=>{"use strict";r.d(t,{Al:()=>l,Mf:()=>s,Nw:()=>u,R7:()=>a});const i=e=>e.tpaSettings,n=e=>{var t;return null!==(t=i(e).settings)&&void 0!==t?t:{}},o=e=>{var t,r;return null!==(r=null===(t=i(e).settings)||void 0===t?void 0:t.comments)&&void 0!==r?r:{}},s=e=>void 0!==n(e).comments,a=e=>{var t;return null===(t=o(e).enabled)||void 0===t||t},l=e=>{var t;return null!==(t=o(e).ratingsEnabled)&&void 0!==t&&t},u=e=>{var t;return null!==(t=n(e).liveSiteEditingDeprecated||(e=>{var t;return null!==(t=n(e).blocksPostPage)&&void 0!==t&&t})(e))&&void 0!==t&&t}},95381:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>L,loadableReady:()=>A});var i=r(27762),n=r.n(i),o=r(30808),s=r(25773),a=r(47169),l=r(93219),u=r(19185),c=r(55839),d=r.n(c);function h(e,t){if(!e){var r=new Error("loadable: "+t);throw r.framesToPop=1,r.name="Invariant Violation",r}}function p(e){console.warn("loadable: "+e)}var g=n().createContext(),m="__LOADABLE_REQUIRED_CHUNKS__";function f(e){return""+e+m}var y={initialChunks:{}},v="PENDING",b="REJECTED";var S=function(e){return e};function P(e){var t=e.defaultResolveComponent,r=void 0===t?S:t,i=e.render,c=e.onLoad;function p(e,t){void 0===t&&(t={});var p=function(e){return"function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e}(e),m={};function f(e){return t.cacheKey?t.cacheKey(e):p.resolve?p.resolve(e):"static"}function S(e,i,n){var o=t.resolveComponent?t.resolveComponent(e,i):r(e);if(t.resolveComponent&&!(0,u.isValidElementType)(o))throw new Error("resolveComponent returned something that is not a React component!");return d()(n,o,{preload:!0}),o}var P,w,_=function(e){var t=f(e),r=m[t];return r&&r.status!==b||((r=p.requireAsync(e)).status=v,m[t]=r,r.then((function(){r.status="RESOLVED"}),(function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:p.resolve(e),chunkName:p.chunkName(e),error:t?t.message:t}),r.status=b}))),r},C=function(e){function r(r){var i;return(i=e.call(this,r)||this).state={result:null,error:null,loading:!0,cacheKey:f(r)},h(!r.__chunkExtractor||p.requireSync,"SSR requires `@loadable/babel-plugin`, please install it"),r.__chunkExtractor?(!1===t.ssr||(p.requireAsync(r).catch((function(){return null})),i.loadSync(),r.__chunkExtractor.addChunk(p.chunkName(r))),(0,a.Z)(i)):(!1!==t.ssr&&(p.isReady&&p.isReady(r)||p.chunkName&&y.initialChunks[p.chunkName(r)])&&i.loadSync(),i)}(0,l.Z)(r,e),r.getDerivedStateFromProps=function(e,t){var r=f(e);return(0,s.Z)({},t,{cacheKey:r,loading:t.loading||t.cacheKey!==r})};var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===b&&this.setCache(),this.state.loading&&this.loadAsync()},n.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},n.componentWillUnmount=function(){this.mounted=!1},n.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},n.getCacheKey=function(){return f(this.props)},n.getCache=function(){return m[this.getCacheKey()]},n.setCache=function(e){void 0===e&&(e=void 0),m[this.getCacheKey()]=e},n.triggerOnLoad=function(){var e=this;c&&setTimeout((function(){c(e.state.result,e.props)}))},n.loadSync=function(){if(this.state.loading)try{var e=S(p.requireSync(this.props),this.props,I);this.state.result=e,this.state.loading=!1}catch(e){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:p.resolve(this.props),chunkName:p.chunkName(this.props),error:e?e.message:e}),this.state.error=e}},n.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then((function(t){var r=S(t,e.props,I);e.safeSetState({result:r,loading:!1},(function(){return e.triggerOnLoad()}))})).catch((function(t){return e.safeSetState({error:t,loading:!1})})),t},n.resolveAsync=function(){var e=this.props,t=(e.__chunkExtractor,e.forwardedRef,(0,o.Z)(e,["__chunkExtractor","forwardedRef"]));return _(t)},n.render=function(){var e=this.props,r=e.forwardedRef,n=e.fallback,a=(e.__chunkExtractor,(0,o.Z)(e,["forwardedRef","fallback","__chunkExtractor"])),l=this.state,u=l.error,c=l.loading,d=l.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===v)throw this.loadAsync();if(u)throw u;var h=n||t.fallback||null;return c?h:i({fallback:h,result:d,options:t,props:(0,s.Z)({},a,{ref:r})})},r}(n().Component),E=(w=function(e){return n().createElement(g.Consumer,null,(function(t){return n().createElement(P,Object.assign({__chunkExtractor:t},e))}))},(P=C).displayName&&(w.displayName=P.displayName+"WithChunkExtractor"),w),I=n().forwardRef((function(e,t){return n().createElement(E,Object.assign({forwardedRef:t},e))}));return I.displayName="Loadable",I.preload=function(e){I.load(e)},I.load=function(e){return _(e)},I}return{loadable:p,lazy:function(e,t){return p(e,(0,s.Z)({},t,{suspense:!0}))}}}var w=P({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,r=e.props;return n().createElement(t,r)}}),_=w.loadable,C=w.lazy,E=P({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,r=e.props;return r.children?r.children(t):null}}),I=E.loadable,O=E.lazy,x="undefined"!=typeof window;function A(e,t){void 0===e&&(e=function(){});var r=void 0===t?{}:t,i=r.namespace,n=void 0===i?"":i,o=r.chunkLoadingGlobal,s=void 0===o?"__LOADABLE_LOADED_CHUNKS__":o;if(!x)return p("`loadableReady()` must be called in browser only"),e(),Promise.resolve();var a=null;if(x){var l=f(n),u=document.getElementById(l);if(u){a=JSON.parse(u.textContent);var c=document.getElementById(l+"_ext");if(!c)throw new Error("loadable-component: @loadable/server does not match @loadable/component");JSON.parse(c.textContent).namedChunks.forEach((function(e){y.initialChunks[e]=!0}))}}if(!a)return p("`loadableReady()` requires state, please use `getScriptTags` or `getScriptElements` server-side"),e(),Promise.resolve();var d=!1;return new Promise((function(e){window[s]=window[s]||[];var t=window[s],r=t.push.bind(t);function i(){a.every((function(e){return t.some((function(t){return t[0].indexOf(e)>-1}))}))&&(d||(d=!0,e()))}t.push=function(){r.apply(void 0,arguments),i()},i()})).then(e)}var T=_;T.lib=I,C.lib=O;const L=T},9439:(e,t,r)=>{"use strict";r.r(t),r.d(t,{classes:()=>n,cssStates:()=>u,keyframes:()=>o,layers:()=>s,namespace:()=>i,st:()=>d,stVars:()=>a,style:()=>c,vars:()=>l});var i="oUugn6c",n={root:"sT3cb4F"},o={},s={},a={},l={},u=r.stc.bind(null,i),c=r.sts.bind(null,i),d=c},4874:(e,t,r)=>{"use strict";r.r(t),r.d(t,{classes:()=>n,cssStates:()=>u,keyframes:()=>o,layers:()=>s,namespace:()=>i,st:()=>d,stVars:()=>a,style:()=>c,vars:()=>l});var i="o__88wdIh",n={root:"srj1e35"},o={},s={},a={},l={},u=r.stc.bind(null,i),c=r.sts.bind(null,i),d=c},95914:(e,t,r)=>{"use strict";r.r(t),r.d(t,{classes:()=>n,cssStates:()=>u,keyframes:()=>o,layers:()=>s,namespace:()=>i,st:()=>d,stVars:()=>a,style:()=>c,vars:()=>l});var i="o__2doJkR",n={root:"stS5k5K"},o={},s={},a={},l={},u=r.stc.bind(null,i),c=r.sts.bind(null,i),d=c},96221:(e,t,r)=>{"use strict";r.d(t,{I8:()=>n,SN:()=>a,XQ:()=>s,f:()=>o,gC:()=>i});var i="specs.wixBlog.EditPostInDashboard",n="specs.wixBlog.PostRatingsInViewer",o="specs.wixBlog.FeedMoreActionsFix",s="specs.wixBlog.UnifyPostsEmptyStates",a="specs.wixBlog.UseLayoutFixer"},8155:e=>{e.exports={YEAR_SLASH_MONTH_OPTIONAL_SLASH_DAY:"([12]\\d{3})/(0[1-9]|1[0-2])(/(0[1-9]|[12][0-9]|3[01]))?",TEXT_WITHOUT_SLASH:"([^/]+)"}},52913:e=>{var t="guest",r="user",i="open-blog-writer",n="writer",o="guest-writer",s="editor",a="owner",l="service",u=[t,r,i,n,o,s,a,l];e.exports={USER_PRIVACY_STATUS_PRIVATE:"PRIVATE",USER_PRIVACY_STATUS_PUBLIC:"PUBLIC",ROLE_GUEST:t,ROLE_USER:r,ROLE_OPEN_BLOG_WRITER:i,ROLE_GUEST_WRITER:o,ROLE_WRITER:n,ROLE_EDITOR:s,ROLE_OWNER:a,ROLE_SERVICE:l,ALLOWED_BLOG_ROLES:u,RESOURCE_BLOG:"blog",RESOURCE_CATEGORY:"category",RESOURCE_POST:"post",RESOURCE_COMMENT:"comment",RESOURCE_MEMBER:"member",RESOURCE_RCE_SETTINGS:"rceSettings",RESOURCE_FILE:"file",RESOURCE_TAG:"tag"}},28613:(e,t,r)=>{"use strict";t.yO=t.vX=t.PB=void 0;var i=r(17607),n=i.sortBy,o=i.intersection,s=r(59739);t.vX=function(e){return void 0===e&&(e=[]),n(e,[function(e){return!e.isPinned},function(e){return-s(e.firstPublishedDate)}])};var a=function(e){return void 0===e&&(e=[]),n(e,(function(e){return-s(e.firstPublishedDate)}))};t.PB=a;var l=a;t.yO=l},59739:e=>{e.exports=function(e){return e instanceof Date?e:new Date(e)}},70592:(e,t,r)=>{"use strict";var i=Object.assign||function(e){for(var t=1;t{"use strict";e.exports={APP_PROTOCOL:"https",BLOG_SECTION_ID:"blog",BLOG_POST_PAGE_SECTION_ID:"post",MEMBERS_APP_ID:"14ad9202-3dd3-128a-57bd-e5675fd7e313",FORUM_APP_ID:"14724f35-6794-cd1a-0244-25fd138f9242",FORUM_SECTION_ID:"forum",SANTA_MEMBERS_APP_ID:"14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9",NOTIFICATIONS_APP_ID:"14f25924-5664-31b2-9568-f9c5ed98c9b1",NOTIFICATIONS_SETTING_APP_ID:"14f25dc5-6af3-5420-9568-f9c5ed98c9b1",MEMBER_INFO_APP_ID:"14cffd81-5215-0a7f-22f8-074b0e2401fb",MEMBER_INFO_SECTION_ID:"member_info",FOLLOWERS_APP_ID:"14ebe801-d78a-daa9-c9e5-0286a891e46f",FORUM_RECENT_POST_WIDGET_ID:"151bd179-dfe6-3ca3-399c-ee97957f93a2",FORUM_APP_PAGE_ID:"1489040e-001f-4631-55a9-2c29b4417126",CHAT_APP_DEF_ID:"14517e1a-3ff0-af98-408e-2bd6953c36a2"}},81761:(e,t,r)=>{"use strict";var i=r(17607),n=i.chain,o=i.identity,s=i.trim,a=i.truncate,l=function(e){return e.replace(/{\$h\d}(.*?){\$h}/g,(function(e,t){return t}))};e.exports={getContentText:function(e,t){var r=n(e).get("blocks",[]).filter((function(e){return"atomic"!==e.type})).map((function(e){return s(e.text)})).map(l).filter(o).join(" ").value();return t?a(r,{length:t}):r}}},83428:(e,t)=>{"use strict";t.hot=void 0;t.hot=function(e,t){return t}},68614:(e,t,r)=>{e.exports=r(83428)},4772:(e,t,r)=>{"use strict";r.d(t,{OO:()=>d,zv:()=>p,JP:()=>h,nI:()=>g});var i=r(22951),n=r(91976),o=(r(64649),r(27762)),s=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,a={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},l=function(e){return a[e]};var u,c={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(s,l)}},d=(0,o.createContext)();function h(){return c}var p=function(){function e(){(0,i.Z)(this,e),this.usedNamespaces={}}return(0,n.Z)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function g(){return u}},79790:(e,t,r)=>{"use strict";r.d(t,{$:()=>d});var i=r(65809),n=r(64649),o=r(27762),s=r(4772),a=r(13303);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.i18n,n=(0,o.useContext)(s.OO)||{},l=n.i18n,d=n.defaultNS,h=r||l||(0,s.nI)();if(h&&!h.reportNamespaces&&(h.reportNamespaces=new s.zv),!h){(0,a.O4)("You will need to pass in an i18next instance by using initReactI18next");var p=function(e){return Array.isArray(e)?e[e.length-1]:e},g=[p,{},!1];return g.t=p,g.i18n={},g.ready=!1,g}h.options.react&&void 0!==h.options.react.wait&&(0,a.O4)("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var m=u(u(u({},(0,s.JP)()),h.options.react),t),f=m.useSuspense,y=m.keyPrefix,v=e||d||h.options&&h.options.defaultNS;v="string"==typeof v?[v]:v||["translation"],h.reportNamespaces.addUsedNamespaces&&h.reportNamespaces.addUsedNamespaces(v);var b=(h.isInitialized||h.initializedStoreOnce)&&v.every((function(e){return(0,a.F0)(e,h,m)}));function S(){return h.getFixedT(null,"fallback"===m.nsMode?v:v[0],y)}var P=(0,o.useState)(S),w=(0,i.Z)(P,2),_=w[0],C=w[1],E=v.join(),I=c(E),O=(0,o.useRef)(!0);(0,o.useEffect)((function(){var e=m.bindI18n,t=m.bindI18nStore;function r(){O.current&&C(S)}return O.current=!0,b||f||(0,a.DC)(h,v,(function(){O.current&&C(S)})),b&&I&&I!==E&&O.current&&C(S),e&&h&&h.on(e,r),t&&h&&h.store.on(t,r),function(){O.current=!1,e&&h&&e.split(" ").forEach((function(e){return h.off(e,r)})),t&&h&&t.split(" ").forEach((function(e){return h.store.off(e,r)}))}}),[h,E]);var x=(0,o.useRef)(!0);(0,o.useEffect)((function(){O.current&&!x.current&&C(S),x.current=!1}),[h,y]);var A=[_,h,b];if(A.t=_,A.i18n=h,A.ready=b,b)return A;if(!b&&!f)return A;throw new Promise((function(e){(0,a.DC)(h,v,(function(){e()}))}))}},13303:(e,t,r)=>{"use strict";function i(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),i=0;is,F0:()=>a,Gf:()=>l,O4:()=>o});var n={};function o(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,i){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.languages[0],n=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===i.toLowerCase())return!0;var s=function(e,r){var i=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===i||2===i};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)||!t.hasResourceBundle(i,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!s(i,e)||n&&!s(o,e)))}(e,t,r):(o("i18n.languages were undefined or empty",t.languages),!0)}function l(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},44042:(e,t,r)=>{"use strict";r.d(t,{E:()=>o,q:()=>n});var i=r(56153);function n(e,t){if("boolean"!=typeof t)throw new i.W("boolean",e,t)}function o(e,t){if("string"!=typeof t)throw new i.W("string",e,t)}},2206:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});var i=r(31202);function n(e){const t=function(e){return function(){const e=(0,i.p)();if(e&&e.cookie)return decodeURIComponent(e.cookie).split(";");return[]}().filter((t=>e===t.split("=")[0].trim()))[0]}(e);return t?t.split("=")[1]:""}},56153:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});class i extends Error{constructor(e,t,r){super(`WixHeadersValidationError: expected ${t} to be ${e} but got ${JSON.stringify(r)}`)}}},31202:(e,t,r)=>{"use strict";function i(){if("object"==typeof document)return document}function n(){return"object"==typeof self?self:r.g}r.d(t,{g:()=>n,p:()=>i})},42368:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var i=r(62627);function n(e){return{"X-Wix-Client-Artifact-Id":e??((0,i.y)()?"":"communities-blog-ooi")}}},34204:(e,t,r)=>{"use strict";function i(e){return{authorization:e}}r.d(t,{j:()=>i})},4089:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var i=r(31202);const n=["consentPolicy","consentPolicyHeader"],o={bsi:"BSI"};const s=()=>{const e=function(){const e=(0,i.g)(),t=e?.commonConfig;if(!t)return null;const r={};let s=!1;return Object.keys(t).forEach((e=>{const i=o[e];i?(r[i]=t[e],s=!0):n.indexOf(e)<0&&"function"!=typeof t[e]&&(r[e]=t[e],s=!0)})),s?r:null}(),t=e?JSON.stringify(e):"";return{commonConfig:encodeURIComponent(t)}}},89582:(e,t,r)=>{"use strict";r.d(t,{D:()=>n});var i=r(31202);function n(){return function(){const e=(0,i.g)();if(e&&e.consentPolicyManager&&"function"==typeof e.consentPolicyManager._getConsentPolicyHeader)return e.consentPolicyManager._getConsentPolicyHeader();return}()||function(){const e=(0,i.g)();if(e&&e.Wix&&e.Wix.Utils&&"function"==typeof e.Wix.Utils._getConsentPolicyHeader)return e.Wix.Utils._getConsentPolicyHeader();return}()||{}}},83390:(e,t,r)=>{"use strict";r.d(t,{EN:()=>s});var i=r(2206);const n="XSRF-TOKEN",o="x-xsrf-token";function s(){const e=(0,i.v)(n);return{[o]:e}}},71196:(e,t,r)=>{"use strict";r.d(t,{H:()=>s});var i=r(35574),n=r.n(i);const o="x-wix-linguist";function s({lang:e,locale:t,isPrimaryLanguage:r,signedInstance:i}){if(function({lang:e,locale:t,isPrimaryLanguage:r}){return e&&t&&/^(true|false)$/.test(r?.toString()||"")}({lang:e,locale:t,isPrimaryLanguage:r})){const s=function(e){try{const t=e?.startsWith("wixcode")?e?.split(".")[2]:e?.split(".")[1];if(t)return JSON.parse(n().decode(t)).instanceId}catch(e){}}(i);if(void 0!==s)return{[o]:[e,t,r?.toString(),s].join("|")}}return{}}},72701:(e,t,r)=>{"use strict";r.d(t,{x:()=>o});var i=r(31202);const n="x-wix-brand";function o(){const e=function(){const e=(0,i.g)();if(e&&e.commonConfig&&"string"==typeof e.commonConfig.brand)return e.commonConfig.brand;return""}();return{[n]:e}}},21666:(e,t,r)=>{"use strict";r.d(t,{I:()=>d});var i=r(83390),n=r(72701),o=r(89582),s=r(34204),a=r(42368),l=r(4089),u=r(71196),c=r(44042);function d(e={}){!function(e){(0,c.q)("opts.csrf",e.csrf),(0,c.E)("opts.signedInstance",e.signedInstance)}(e={csrf:!0,signedInstance:"",...e});const t=[(0,n.x)(),(0,o.D)(),(0,s.j)(e.signedInstance),(0,a.k)(e.artifactId),(0,l.x)(),(0,u.H)({signedInstance:e.signedInstance,...e.multilingualOptions})];return e.csrf&&t.push((0,i.EN)()),t.filter((e=>Object.values(e).every((e=>e)))).reduce(((e,t)=>({...e,...t})),{})}},62627:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});var i=r(27061);function n(){return void 0!==i&&null!=i.versions?.node&&(!!i.env.TEAMCITY_VERSION||!!i.env.BUILDKITE)}},14318:(e,t,r)=>{e.exports=r(95381)},85225:(e,t,r)=>{e.exports=r(17607).cloneDeep},69293:(e,t,r)=>{e.exports=r(17607).memoize},90133:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(77897);const n=e=>(0,i.$j)(((t,r)=>e(t.state,r,t.actions,t.host,t.workerReady)),{})},69679:(e,t,r)=>{"use strict";r.d(t,{$j:()=>i.Z,ol:()=>n.Z,v9:()=>o.Z});var i=r(90133),n=r(84174),o=r(7342)},84174:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(77897);const n=()=>(0,i.v9)((e=>e.actions))},7342:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(77897);const n=e=>(0,i.v9)((t=>e(t.state,t.host,t.actions)))},17330:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(14123);const n=e=>t=>(t.displayName=(0,i.Z)(e,t),t)},37001:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var i=r(17607),n=r(3495),o=r(44297),s=r(69679),a=r(41905),l=r(97097),u=r(20859),c=r(17330);const d=e=>(t,r)=>{var i;const s=r.section||(0,l.I)(t,e),c=r.mobileLayoutType||(0,a.uE)(t,s,!0);let d=r.layoutType||(0,a.uE)(t,s);return!(0,a.n4)(t)&&d&&(null==(i=(0,u.ep)(d))?void 0:i.listComponentName)===n.os&&(d=o.Ty),{section:s,layoutType:d,mobileLayoutType:c,layoutName:(0,o.jP)(d),mobileLayoutName:(0,o.jP)(c)}};function h(e){let{fallbackEnabled:t=!0}=void 0===e?{}:e;return(0,i.flowRight)((0,s.$j)(d(t)),(0,c.Z)("WithLayoutProps"))}},88520:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var i=r(69679),n=r(7086);function o(){const e=(0,i.v9)(n.W7);return{isMobile:e,isDesktop:!e}}},91267:(e,t,r)=>{"use strict";r.d(t,{Z:()=>h});var i=r(27762),n=r(84449),o=r(69679),s=r(64500),a=r(76393),l=r(67700),u=r(97097),c=r(70334),d=r(20859);const h=function(e){void 0===e&&(e=n.gN);const t=(0,o.v9)((t=>(0,u.I)(t)||e)),r=(0,o.v9)(s.Bv),h=(0,o.v9)(a.rh),p=(0,o.v9)(a.H7),g=(0,o.v9)(a.QX),m=(0,o.v9)(l.R),f=(0,c.Fz)(r)&&!m,y=t===n.WB||t===n.a7||t===n.AP||(p||h)&&(f||!1);return{getPostClassName:(0,i.useMemo)((()=>y?(0,d.Z9)(t,g):()=>[]),[y,t,g]),applyFeedDesign:y,section:t}}},2186:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var i=r(27762),n=r(60042),o=r.n(n),s=r(44297),a=r(69679),l=r(76393),u=r(20859),c=r(91267),d=r(75708),h=r(45328);const p=(e,t,r)=>({iconColorClassName:o()(e(t(r,"description-fill"))),textColorClassName:o()(e(t(r,"description-color"),t(r,"description-fill"),"description-font")),separatorBackgroundColorClassName:o()(e(t(r,"description-background-color")))}),g=(e,t,r,i)=>(0,s.Vp)(e)?{iconColorClassName:h.Z.textOnImageIcons,textColorClassName:h.Z.textOnImageTextColor,separatorBackgroundColorClassName:h.Z.textOnImageSeperatorBackgroundColor}:{iconColorClassName:t||"blog-icon-fill",textColorClassName:r||"blog-text-color",separatorBackgroundColorClassName:i||"blog-separator-background-color"},m=function(e){let{iconColorClassName:t,textColorClassName:r,separatorBackgroundColorClassName:n}=void 0===e?{}:e;const o=(0,d.Z)({fallbackEnabled:!1}),s=(0,c.Z)(o.section),h=(0,a.v9)(l.wl)?o.mobileLayoutName:o.layoutName;return(0,i.useMemo)((()=>s.applyFeedDesign?p(s.getPostClassName,u.Wv,h):g(o.layoutType,t,r,n)),[h,s.applyFeedDesign,s.getPostClassName,o.layoutType,t,n,r])}},75708:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var i=r(27762),n=r(3495),o=r(44297),s=r(69679),a=r(41905),l=r(97097),u=r(20859);function c(e){void 0===e&&(e={});const t=(0,s.v9)((t=>{var r,i;return null!=(r=e.section)?r:(0,l.I)(t,null==(i=e.fallbackEnabled)||i)})),r=(0,s.v9)((r=>{var i;return null!=(i=e.mobileLayoutType)?i:(0,a.uE)(r,t,!0)})),c=(0,s.v9)((r=>{var i;return null!=(i=e.layoutType)?i:(0,a.uE)(r,t)})),d=(0,s.v9)(a.n4);return(0,i.useMemo)((()=>{var e;return d||(null==(e=(0,u.ep)(c))?void 0:e.listComponentName)!==n.os?{section:t,layoutType:c,mobileLayoutType:r,layoutName:(0,o.jP)(c),mobileLayoutName:(0,o.jP)(r)}:{section:t,layoutType:o.Ty,mobileLayoutType:r,layoutName:(0,o.jP)(o.Ty),mobileLayoutName:(0,o.jP)(r)}}),[t,c,r,d])}},64500:(e,t,r)=>{"use strict";r.d(t,{Bv:()=>o});const i=e=>e.router,n=e=>{var t;return null==(t=i(e))?void 0:t.currentMatch},o=e=>{var t;return null==(t=n(e))?void 0:t.route}},45796:(e,t,r)=>{"use strict";r.d(t,{$U:()=>o,CQ:()=>a,hO:()=>n,vy:()=>s});var i=r(17607);const n=e=>e.appSettings;function o(e){let{state:t,key:r,fallback:o}=e;return(0,i.get)(n(t),r,o)}const s=function(e,t,r){return void 0===r&&(r=1),o({state:e,key:"style.numbers."+t,fallback:r})},a=function(e,t,r){return void 0===r&&(r=void 0),o({state:e,key:"style.fonts."+t,fallback:r})}},76393:(e,t,r)=>{"use strict";r.d(t,{B6:()=>j,BQ:()=>ve,H7:()=>V,Ho:()=>K,I$:()=>Z,Jq:()=>ne,K1:()=>Ie,Kf:()=>J,Ne:()=>he,QX:()=>A,Qn:()=>Y,Qq:()=>fe,Uu:()=>X,Uw:()=>Q,Ve:()=>Pe,X2:()=>M,XJ:()=>z,XU:()=>L,Y$:()=>be,YN:()=>ce,dS:()=>R,df:()=>ae,eL:()=>_e,fG:()=>H,fM:()=>q,g7:()=>B,gJ:()=>D,gK:()=>F,h7:()=>$,hO:()=>W,iQ:()=>ue,jl:()=>Ee,k$:()=>pe,lH:()=>ee,m8:()=>me,mE:()=>G,mH:()=>Ce,pS:()=>de,rh:()=>re,sJ:()=>se,tx:()=>k,vO:()=>N,w6:()=>O,wS:()=>Se,wl:()=>x,xP:()=>le,yv:()=>te,zX:()=>ye});var i=r(17607),n=r(80406),o=r(44905),s=r(21530),a=r(56814),l=r(7027),u=r(84449),c=r(76173),d=r(31853),h=r(57976),p=r(44297),g=r(51961),m=r(26631),f=r(54570),y=r(61699),v=r(83315),b=r(7086),S=r(18572),P=r(45796),w=r(41905),_=r(68378),C=r(97097);const E=(0,n.wN)(o.PW,i.isEqual),I=E([P.hO],(e=>(0,i.get)(e,"colorPresets",[]))),O=e=>(0,b.W7)(e)&&(0,_.yS)(e),x=e=>(0,b.W7)(e)&&(0,_.Q5)(e),A=e=>(0,b.W7)(e)&&(0,_.L)(e);function T(e){let t="fallback"in e?e.fallback:void 0;"wixParam"in e&&(null!=t||(t=(0,s.A)(e.wixParam,(0,C.I)(e.state))));return(0,P.$U)({state:e.state,key:O(e.state)?e.mobileKey:e.key,fallback:t})}const L=e=>T({state:e,mobileKey:a.GD,key:a.BG,wixParam:a.G5}),M=e=>T({state:e,mobileKey:a.s4,key:a.K2,wixParam:a.aS}),R=e=>T({state:e,mobileKey:a.GU,key:a.MH,wixParam:a.iJ}),N=e=>T({state:e,mobileKey:a.qb,key:a.Uv,wixParam:a.cD}),k=e=>!!(0,l.Al)(e)&&T({state:e,mobileKey:a.s0,key:a.qe,wixParam:a.NY,fallback:!0}),D=(e,t)=>{const r=(0,_.yS)(e),i=(0,b.W7)(e);return(0,C.I)(e)===u.AP?(0,s.A)(a.hA,u.AP):!(t===u.WB||t===u.a7||r||!i)||T({state:e,mobileKey:a.PQ,key:a.Kr,wixParam:a.hA})},Z=e=>T({state:e,mobileKey:a.TZ,key:a.Qw,wixParam:a.uC}),H=e=>T({state:e,mobileKey:a.Zx,key:a.ZS,wixParam:a.v0}),B=e=>{const t=(0,s.A)(a.Ot,(0,C.I)(e)),r=O(e);return T({state:e,mobileKey:a.iU,key:a.Pz,fallback:r?(0,P.$U)({state:e,key:a.Pz,fallback:t}):t})},W=(e,t)=>T({state:e,mobileKey:a.rk,key:a.EW,wixParam:a.Mk,fallback:t}),F=e=>T({state:e,mobileKey:a.xN,key:a.WT,fallback:O(e)?B(e):(0,s.A)(a.yM,(0,C.I)(e))}),G=e=>{const t=(0,s.A)(a.ON,(0,C.I)(e));return T({state:e,key:a.HJ,mobileKey:a.JW,fallback:O(e)?(0,P.$U)({state:e,key:a.HJ,fallback:t}):t})},U=e=>T({state:e,mobileKey:a.qG,key:a.XG,wixParam:a.lu}),z=e=>T({state:e,mobileKey:a.aU,key:a.vE,wixParam:a.A7}),j=e=>(0,P.$U)({state:e,key:a.HX,fallback:!1}),V=e=>(0,P.$U)({state:e,key:c.es,fallback:!1}),K=e=>{const t=(0,C.I)(e)===u.AP?(0,s.A)(a.ZQ,u.AP):U(e);return T({state:e,mobileKey:a.IG,key:a.U0,fallback:t})},q=e=>T({state:e,mobileKey:a.K_,key:a.SZ,fallback:U(e)}),X=e=>T({state:e,mobileKey:a.wY,key:a.Li,fallback:!0}),$=e=>T({state:e,mobileKey:d.HQ,key:d.D7}),Y=e=>{const t=T({state:e,mobileKey:d.ND,key:d.uQ,fallback:!0}),r=(0,P.$U)({state:e,key:O(e)?d.XA:d.CU,fallback:d.bY.recent});return t?d.Ow[r]:void 0},Q=e=>T({state:e,mobileKey:a.sy,key:a.gS,fallback:!0}),J=e=>(0,P.$U)({state:e,key:(0,a.c)(h.gW,O(e)),fallback:!1}),ee=(E([e=>T({state:e,mobileKey:a.CK,key:a.MU,fallback:!0}),e=>(0,i.filter)(h.ve,(t=>((e,t)=>(0,P.$U)({state:e,key:(0,a.c)(t,O(e)),fallback:!0}))(e,t)))],((e,t)=>e?t:[])),(e,t,r,i)=>{if((0,b.W7)(e))return;const n=(0,p.jP)(t),o=(0,c.qs)(n,r,i+"Font"),s=(0,g.th)(t,i);return(0,P.CQ)(e,o,{}).size||s}),te=(e,t,r,n)=>{const o=(0,c.P0)(t,r||u.V3,n+"FontSize"),s=(0,b.W7)(e),a=(0,g.th)(t,n,s);if(s){if(r===u.WB||r===u.a7){const s=(0,c.P0)(t,r,n+"FontSize",!0);return(0,i.get)((0,P.hO)(e),s,(0,i.get)((0,P.hO)(e),o,a))}const s=(0,g.eN)(t,n),l=(0,g.ir)(t,n);let d=((e,t,r)=>{var i;return null==(i=(0,P.$U)({state:e,key:""+(0,c.sn)(t,r)}))?void 0:i.size})(e,r,n+"Font")||a;return d=Math.min(s,d)||d,d=Math.max(l,d)||d,(0,i.get)((0,P.hO)(e),o,d)}return(0,i.get)((0,P.hO)(e),o,a)},re=e=>(0,i.get)((0,P.hO)(e),"style.booleans.responsive",!1),ie=e=>{let{state:t,section:r,containerWidth:i,layoutType:n}=e;const o=(0,f.Eq)(n,f.ls,r),s=pe({state:t,section:r,layoutType:n}),a=(e=>(0,P.vy)(e,m.bt,m.Yh))(t);return("number"==typeof i?Math.min(i,o):o)-2*a-2*s},ne=e=>{let{state:t,section:r,hostWidth:n,rootWidth:o,layoutMargins:s,layoutType:a}=e;r||(r=(0,C.I)(t)),a||(a=(0,w.uE)(t,r));const l=(0,p.lI)(a),c=(0,p.$b)(l),d=(0,p.Ug)(l),h=(0,i.isNumber)(n)?n:(0,i.isNumber)(o)?o:void 0;if(r===u.AP)return ie({state:t,section:r,containerWidth:h,layoutType:a});if(c||d){const e=c?1100:980,t=void 0!==h&&hi=>{let{state:n,section:o,layoutType:s}=i;o||(o=(0,C.I)(n));const a=x(n);if(s||(s=(0,w.uE)(n,o,a)),!s)return;const l=(0,p.lI)(s),u=e(o,l,a),c=(0,f.Eq)(s,a&&r||t,o);return(0,P.$U)({state:n,key:u,fallback:c})},se=oe(y.Al,f.xt),ae=oe(y.Ii,f.gw),le=oe(y.yo,f.qT,f.hP),ue=oe(y.HR,f.TN,f.MI),ce=oe(y.G9,f.uZ),de=oe(y.LF,f.HN),he=oe(y.S9,f.sY),pe=oe(y.sF,f.yX,f.hT),ge=e=>(0,P.$U)({state:e,key:c.t7,fallback:!1}),me=e=>ge(e.state)?oe(y.pn,f.KT)(e):oe(y.pn)(e),fe=e=>ge(e.state)?oe(y.UA,f.bs)(e):oe(y.UA)(e),ye=oe(y.jH,f.NJ),ve=oe(y.S5,f.rs),be=oe(y.c7,f.U5),Se=oe(y.O4,f.lX),Pe=oe(y.qF,f.lv),we=(e,t)=>(0,i.get)((0,i.find)(I(e),(e=>{let{reference:r}=e;return r===t})),"value");function _e(e){let{state:t,section:r}=e;const i=A(t)?(0,c.tF)(r):(0,c.O4)(r),n={value:we(t,"color-2")};return(0,P.$U)({state:t,key:i,fallback:n})}(0,n.P1)([Z,S.n,(e,t)=>t],((e,t,r)=>i=>{if(e){const e=(0,v.J)({post:i,canSee:r,enableShare:!0,enableSubscribe:t});return Boolean(e.length)}return!1}));const Ce=e=>T({state:e,key:a.ss,mobileKey:a.eG,wixParam:a.vK}),Ee=(e,t)=>(0,P.$U)({state:e,key:"style.numbers."+a.feedWidgetStyleParams.contentAlignment.key,fallback:t?a.Cu.Right:a.Cu.Left}),Ie=e=>(0,P.$U)({state:e,key:y.uk,fallback:!1})},41905:(e,t,r)=>{"use strict";r.d(t,{n4:()=>v,uE:()=>y,uy:()=>f});var i=r(17607),n=r(44297),o=r(36991),s=r(84449),a=r(61699),l=r(21934),u=r(3515),c=r(14826),d=r(26430),h=r(84671),p=r(7086),g=r(45796),m=r(76393);r(97097);const f=(e,t)=>{if(t)return n.O4;if((0,o.ay)(e)===u.U||(0,o.ay)(e)===d.u)return n.z;return(0,m.rh)(e)?n.z:n.vb},y=function(e,t,r){if(void 0===r&&(r=(0,p.W7)(e)),!t)return;if(t===s.WB)return(0,c.L)({state:e,isMobile:r});if(t===s.a7)return(0,h.zP)({state:e,isMobile:r});if(t===s.AP)return(0,l.$)(e);const n=f(e,r);return(0,i.get)((0,g.hO)(e),(0,a.S6)(t,r),n)},v=e=>!(0,p.D9)(e)},68378:(e,t,r)=>{"use strict";r.d(t,{Hf:()=>S,JT:()=>h,L:()=>m,MN:()=>b,P9:()=>v,Q5:()=>g,fd:()=>f,xz:()=>y,yS:()=>p});var i=r(56814),n=r(61699),o=r(76173),s=r(84449),a=r(44297),l=r(7086),u=r(45796),c=r(41905),d=r(97097);const h=(e,t)=>(0,u.$U)({state:e,key:t,fallback:!1}),p=e=>h(e,i.is),g=e=>h(e,n.b7),m=e=>h(e,o.$O),f=e=>{const t=(0,d.I)(e);return(t===s.WB||t===s.a7)&&(0,l.W7)(e)},y=e=>{const t=(0,d.I)(e);return(t===s.WB||t===s.a7)&&(0,l.W7)(e)},v=e=>{const t=(0,d.I)(e);if(!(0,l.W7)(e))return null;if(t===s.WB||t===s.a7){const r=(0,c.uE)(e,t,!0);return(0,a.jP)(r)}return null},b=e=>(0,l.W7)(e)&&g(e)&&(P(e,s.WB)||P(e,s.a7)),S=e=>(0,l.W7)(e)&&m(e)&&(P(e,s.WB)||P(e,s.a7)),P=(e,t)=>(0,c.uE)(e,t,!0)===a.I7||!(0,c.uE)(e,t,!0)&&(0,c.uE)(e,t)===a.I7},97097:(e,t,r)=>{"use strict";r.d(t,{I:()=>c});var i=r(84449),n=r(36991),o=r(27493),s=r(3515),a=r(26430),l=r(64500),u=r(70334);function c(e,t){const r=(0,l.Bv)(e);return(0,u.lo)(r)?i.gN:(0,u.AD)(r)||(0,u.OA)(r)||(0,u.Dx)(r)||(0,u.yv)(r)?i.V3:(0,n.ay)(e)===s.U?i.WB:(0,n.ay)(e)===a.u?i.a7:(0,n.ay)(e)===o.uI?i.AP:t?i.V3:void 0}},20859:(e,t,r)=>{"use strict";r.d(t,{Wv:()=>d,Z9:()=>c,ep:()=>l});var i=r(56583),n=r(44297),o=r(3495),s=r(84449);const a={[n.wA]:{listComponentName:o.os,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:3,description:3},withoutCover:{title:3,description:3}}}},[n.J9]:{listComponentName:o.os,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:3,description:3},withoutCover:{title:3,description:3}}}},[n.rB]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:2,description:2},withoutCover:{title:2,description:2}}}},[n._V]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:2,description:2},withoutCover:{title:2,description:2}}}},[n.dj]:{listComponentName:o.ol,itemComponentName:o.Q5,itemConfig:{displayFooterIcons:!1}},[n.Bt]:{listComponentName:o.wf,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:0,description:3},withoutCover:{title:0,description:3}}}},[n.vb]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{withCover:{title:3,description:2},withoutCover:{title:2,description:2}}}},[n.po]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:3,description:0},withoutCover:{title:3,description:4}}}},[n.ue]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:2,description:0},withoutCover:{title:2,description:0}}}},[n.MM]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:2,description:0},withoutCover:{title:2,description:0}}}},[n.O4]:{listComponentName:o.wf,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:0,description:3},withoutCover:{title:0,description:3}}}},[n.lF]:{listComponentName:o.wf,itemComponentName:o.nH,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:0,description:3},withoutCover:{title:0,description:3}}}},[n.PS]:{listComponentName:o.wf,itemComponentName:o.SB,itemConfig:{displayFooterIcons:!0,lineCount:{withCover:{title:2,description:0},withoutCover:{title:2,description:0}}}},[n.k2]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:0}}},[n.IE]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:0}}},[n.Sf]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:0}}},[n.yc]:{listComponentName:o.os,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[n.wU]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[n.pf]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[n.z]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:4}}},[n.fl]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:4}}},[n.wQ]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:4}}},[n.rO]:{listComponentName:o.ol,itemComponentName:o.mU,itemConfig:{displayFooterIcons:!1,lineCount:{title:3,description:3}}},[n.I7]:{itemConfig:{hideFooter:!0,hideHeader:!0,hideDescription:!0,lineCount:{title:3,description:3},displayFooterIcons:!0}},[n.Fs]:{itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:3}}},[n.Lq]:{itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:3}}},[n.QG]:{itemConfig:{displayFooterIcons:!0,lineCount:{title:3,description:3}}}},l=e=>a[e],u=["title-color","TOI-title-color","description-color","TOI-description-color","overlay-background-color","border-color","background-color","TOI-background-color","post-container","hover-container","link-hashtag-hover-fill","link-hashtag-hover-color","pagination-active","description-fill","TOI-description-fill","description-background-color","TOI-description-background-color"],c=(0,i.default)(((e,t)=>function(){for(var r=arguments.length,i=new Array(r),n=0;n"blog-post-"+e+"-"+((e,t,r)=>e&&(t===s.WB||t===s.a7)&&u.includes(r)?r.startsWith("TOI")?r.replace("TOI","TOI-mobile"):"mobile-"+r:r)(t,e,r)))})),d=(e,t)=>((0,n.Sp)(e)?"TOI-":"")+t},83315:(e,t,r)=>{"use strict";r.d(t,{J:()=>o});var i=r(17607),n=r(53505);const o=e=>{let{actions:t=n.aY,post:r,canSee:o,enableShare:s=!0,enableSubscribe:a=!0}=e;return(0,i.chain)(t).filter((e=>o(e,"post",r))).without(s||n.r9,a||n.P3).value()}},78257:(e,t,r)=>{"use strict";r.d(t,{AI:()=>a,Ul:()=>u,XX:()=>n,ac:()=>o,gn:()=>s,nN:()=>l,vp:()=>c});var i=r(50870);const n="/(page/:page(/))",o="/category/:categorySlug(/:subcategorySlug)(/page/:page)(/)",s="/"+i.vt+"/:categorySlug(/:subcategorySlug)(/page/:page)(/)",a="/search(/:query)",l="/"+i.Vf+"/:hashtag(/page/:pageIndex)(/)",u="/"+i.TR+"/:year/:month(/page/:pageIndex)(/)",c="/"+i.TW+"/:tagSlug(/page/:page)(/)"},21934:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var i=r(44297),n=r(7086);const o=e=>(0,n.W7)(e)?i.Fs:i.wU},14826:(e,t,r)=>{"use strict";r.d(t,{L:()=>c});var i=r(17607),n=r(61699),o=r(44297),s=r(84449),a=r(45796),l=r(41905),u=r(68378);const c=e=>{var t;let{state:r,isMobile:i}=e;const s=(0,u.JT)(r,n.b7)?h(r):void 0,a=null!=(t=d(r))?t:(0,l.uy)(r);if(i&&a&&!s)return o.pF[a];let c=i&&s||a;return i&&((0,o.rf)(c)||(0,o.Ip)(c))&&(c=o.z),c},d=e=>(0,i.get)((0,a.hO)(e),(0,n.S6)(s.WB,!1)),h=e=>(0,i.get)((0,a.hO)(e),(0,n.S6)(s.WB,!0))},4969:(e,t,r)=>{"use strict";r.d(t,{AA:()=>c,Bn:()=>l,Gz:()=>o,Q7:()=>n,j7:()=>s,of:()=>a,pA:()=>i,v1:()=>u});const i="/404",n="/create-post",o="/:postSlug",s="/:year/:month(/:day)/:postSlug(/)",a="/:postSlug/edit",l="/:postId/preview/:instance(=*)",u="/:postSlug/edit-comment/:commentId",c="/:year/:month(/:day)/:postSlug/edit-comment/:commentId"},26430:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});const i="related-posts-widget"},84671:(e,t,r)=>{"use strict";r.d(t,{zP:()=>c});var i=r(17607),n=r(61699),o=r(44297),s=r(84449),a=r(45796),l=r(41905),u=r(68378);r(7086);const c=e=>{var t;let{state:r,isMobile:i}=e;const s=null!=(t=d(r,!1))?t:(0,l.uy)(r,!1),a=(0,u.JT)(r,n.b7)?d(r,!0):void 0;if(i&&!a)return o.Ar.List;const c=i&&a||s;return i&&((0,o.rf)(c)||(0,o.Ip)(c))?o.Ar.PgGrid:c};function d(e,t){return(0,i.get)((0,a.hO)(e),(0,n.S6)(s.a7,t))}},99086:(e,t,r)=>{"use strict";r.d(t,{f:()=>a});var i=r(27762),n=r.n(i),o=r(95381),s=r(33545);const a=(0,o.ZP)({resolved:{},chunkName:()=>"wix-ricos-viewer",isReady(e){const t=this.resolve(e);return!0===this.resolved[t]&&!!r.m[t]},importAsync:()=>Promise.all([r.e(2347),r.e(7547),r.e(3933),r.e(3482),r.e(8989),r.e(4648),r.e(6402),r.e(2830)]).then(r.bind(r,21812)),requireAsync(e){const t=this.resolve(e);return this.resolved[t]=!1,this.importAsync(e).then((e=>(this.resolved[t]=!0,e)))},requireSync(e){const t=this.resolve(e);return r(t)},resolve(){return 21812}},{resolveComponent:e=>e.WixRicosViewerNext,fallback:n().createElement(s.Z,null)})},52284:function(e,t){var r,i,n; /*! * Clamp.js 0.7.0 * Based on: https://github.com/xavi160/Clamp.js/commit/e313818da231b8dd8fd603dd9c9a61a9d725c22f * Mixins: * - https://github.com/josephschmitt/Clamp.js/pull/50 * - https://github.com/josephschmitt/Clamp.js/pull/49 * * Copyright 2011-2013, Joseph Schmitt http://joe.sh * Released under the WTFPL license * http://sam.zoy.org/wtfpl/ */i=[],r=function(){function e(e,t){t=t||{},e.removeAttribute("style");var r,i=window,n={clamp:t.clamp||2,useNativeClamp:void 0===t.useNativeClamp||t.useNativeClamp,useExactLineHeight:void 0!==t.useExactLineHeight&&t.useExactLineHeight,splitOnChars:t.splitOnChars||[".","-","\u2013","\u2014"," "],animate:t.animate||!1,truncationChar:t.truncationChar||"\u2026",truncationHTML:t.truncationHTML,maxLineCount:void 0!==t.maxLineCount?t.maxLineCount:9999},o=e.style,s=e.innerHTML,a=void 0!==e.style.webkitLineClamp,l=n.clamp,u=l.indexOf&&(l.indexOf("px")>-1||l.indexOf("em")>-1);function c(e,t){return i.getComputedStyle||(i.getComputedStyle=function(e,t){return this.el=e,this.getPropertyValue=function(t){var r=/(\-([a-z]){1})/g;return"float"==t&&(t="styleFloat"),r.test(t)&&(t=t.replace(r,(function(){return arguments[2].toUpperCase()}))),e.currentStyle&&e.currentStyle[t]?e.currentStyle[t]:null},this}),i.getComputedStyle(e,null).getPropertyValue(t)}function d(){const e=i.navigator?i.navigator.userAgent:"";return e.match(/iPhone/i)&&e.match(/safari/i)}function h(t,r){const i=e.clientHeight,o=i%r,s=t||i+(o/r>.9?r-o:0),a=d()?Math.ceil:Math.floor,l=Math.max(a(s/r),0);return Math.min(l,n.maxLineCount)}function p(t){return g(e)*t}function g(e){if(n.useExactLineHeight)return m(e);var t=c(e,"line-height");return"normal"==t&&(t=1.2*parseInt(c(e,"font-size"))),parseInt(t)}function m(e){var t=e.parentNode,r=(3===e.lastChild.nodeType?e:e.lastChild).cloneNode(!0);(S(r)||r).textContent=e.textContent?e.textContent.trim()[0]:" ",t.appendChild(r);var i=r.clientHeight;return t.removeChild(r),i}n.truncationHTML&&((r=document.createElement("span")).innerHTML=n.truncationHTML);var f,y,v=n.splitOnChars.slice(0),b=v[0];function S(e){if(e.lastChild){if(e.lastChild.children&&e.lastChild.children.length>0)return S(Array.prototype.slice.call(e.children).pop());if(e.lastChild&&e.lastChild.nodeValue&&""!==e.lastChild.nodeValue&&e.lastChild.nodeValue!=n.truncationChar)return e.lastChild;var t=e.lastChild;do{if(!t)return;if(3===t.nodeType&&-1===["",n.truncationChar].indexOf(t.nodeValue))return t;if(t.lastChild){var r=S(t);if(r)return r}t.parentNode.removeChild(t)}while(t=t.previousSibling)}}function P(t,i){if(t&&i){var o=t.nodeValue.replace(n.truncationChar,"");if(f||(b=v.length>0?v.shift():"",f=o.split(b)),f.length>1?(y=f.pop(),w(t,f.join(b))):f=null,r&&(t.nodeValue=t.nodeValue.replace(n.truncationChar,""),e.innerHTML=t.nodeValue+" "+r.innerHTML+n.truncationChar),f){if(e.clientHeight<=i){if(!(v.length>=0&&""!==b))return e.innerHTML;w(t,f.join(b)+b+y),f=null}}else""===b&&(w(t,""),t=S(e),s());if(!n.animate)return P(t,i);setTimeout((function(){P(t,i)}),!0===n.animate?10:n.animate)}function s(){v=n.splitOnChars.slice(0),b=v[0],f=null,y=null}}function w(e,t){e.nodeValue=t+n.truncationChar}var _,C=g(e);if("parent"===l?l=h(e.parentNode.clientHeight,C):"auto"==l?l=h(void 0,C):u&&(l=h(parseInt(l),C)),a&&n.useNativeClamp&&!d())o.overflow="hidden",o.textOverflow="ellipsis",o.webkitBoxOrient="vertical",o.display=l>0?"-webkit-box":"none",o.webkitLineClamp=l,o.maxHeight=l*C+"px",u&&(o.height=n.clamp+"px");else{var E=p(l);E{"use strict";r.d(t,{q:()=>a});var i=r(73119),n=r.n(i),o=r(27762),s=r.n(o);const a=e=>s().createElement("svg",n()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",role:"img",style:{fillRule:"nonzero"}},e),s().createElement("path",{d:"M7 14.33l3-2.933 3 2.934V3.978H7v10.353zM7 3h6a.99.99 0 0 1 1 .978v11.533c0 .27-.224.489-.5.489a.506.506 0 0 1-.354-.143L10 12.78l-3.146 3.077a.508.508 0 0 1-.708 0A.484.484 0 0 1 6 15.51V3.978A.99.99 0 0 1 7 3z"}))},33545:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var i=r(27762),n=r.n(i),o=r(60042),s=r.n(o);const a="JNxVBA",l="mnxIuN",u=e=>{let{bubbleClassName:t,dataHook:r}=e;return n().createElement("div",{className:a,"data-hook":r},n().createElement("span",{className:s()(l,t)}),n().createElement("span",{className:s()(l,t)}),n().createElement("span",{className:s()(l,t)}))};u.defaultProps={bubbleClassName:"blog-text-background-color"};const c=u},78559:(e,t,r)=>{"use strict";r.d(t,{yH:()=>p,rX:()=>c,QM:()=>d});var i=r(27762),n=r.n(i),o=r(60042),s=r.n(o),a=r(2521);const l="tmHsxH",u="Ki_0_s",c=e=>{let{className:t,inverted:r,separatorBackgroundColorClassName:i}=e;return n().createElement("span",{className:s()(l,t,h(r,i))})},d=(0,a.Z)(c);function h(e,t){return e?"blog-inverted-separator-background-color":t||"blog-separator-background-color"}const p=(0,a.Z)((e=>{let{className:t,inverted:r,separatorBackgroundColorClassName:i}=e;return n().createElement("span",{className:s()(u,t,h(r,i))})}))},10660:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var i=r(73119),n=r.n(i),o=r(27762),s=r.n(o),a=r(55839),l=r.n(a),u=r(17607),c=r(84449),d=r(69679),h=(r(91267),r(64500)),p=r(76393),g=r(67700),m=r(97097),f=r(70334),y=r(20859),v=r(17330);const b=e=>{const t=t=>{let{isCreatedWithResponsiveEditor:r,isFeedDesignPropsMigrated:i,isInFeed:o,isInSearch:a,section:l,useMobileSettings:d,shouldApplyPostDesignInFeed:h,...p}=t;const g=o&&!h,m=l===c.WB||l===c.a7||l===c.AP||(i||r)&&(g||a),f=m?(0,y.Z9)(l,d):u.noop;return s().createElement(e,n()({getPostClassName:f,applyFeedDesign:m,section:l},p))};t.defaultProps={section:c.gN},l()(t,e);return(0,u.flowRight)((0,d.$j)(((e,t)=>{let{section:r}=t;const i=(0,h.Bv)(e);return{section:(0,m.I)(e)||r,isInFeed:(0,f.Fz)(i),isInSearch:!1,isCreatedWithResponsiveEditor:(0,p.rh)(e),isFeedDesignPropsMigrated:(0,p.H7)(e),useMobileSettings:(0,p.QX)(e),shouldApplyPostDesignInFeed:(0,g.R)(e)}})),(0,v.Z)("WithIsFeedDesignEnabled"))(t)}},2521:(e,t,r)=>{"use strict";r.d(t,{Z:()=>g});var i=r(60042),n=r.n(i),o=r(17607),s=r(44297),a=r(69679),l=(r(2186),r(76393)),u=r(20859),c=r(17330),d=r(10660),h=r(37001),p=r(45328);const g=(0,o.flowRight)((0,h.Z)({fallbackEnabled:!1}),d.Z,(0,a.$j)(((e,t)=>{let{applyFeedDesign:r,layoutType:i,layoutName:o,mobileLayoutName:a,getPostClassName:c,iconColorClassName:d,textColorClassName:h,separatorBackgroundColorClassName:g}=t;const m=(0,l.wl)(e)?a:o;return r?((e,t,r)=>({iconColorClassName:n()(e(t(r,"description-fill"))),textColorClassName:n()(e(t(r,"description-color"),t(r,"description-fill"),"description-font")),separatorBackgroundColorClassName:n()(e(t(r,"description-background-color")))}))(c,u.Wv,m):((e,t,r,i)=>(0,s.Vp)(e)?{iconColorClassName:p.Z.textOnImageIcons,textColorClassName:p.Z.textOnImageTextColor,separatorBackgroundColorClassName:p.Z.textOnImageSeperatorBackgroundColor}:{iconColorClassName:t||"blog-icon-fill",textColorClassName:r||"blog-text-color",separatorBackgroundColorClassName:i||"blog-separator-background-color"})(i,d,h,g)})),(0,c.Z)("WithLayoutColorClasses"))},67700:(e,t,r)=>{"use strict";r.d(t,{R:()=>l});var i=r(84449),n=r(44297),o=r(76393),s=r(41905),a=r(97097);const l=e=>{const t=(0,a.I)(e);if(t!==i.gN)return!1;const r=(0,s.uE)(e,t);return(0,n.vV)(r)&&(0,o.K1)(e)}},63723:(e,t,r)=>{e.exports=r(81761)},14123:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(57882);function n(e,t){return e+"("+(0,i.Z)(t)+")"}},70334:(e,t,r)=>{"use strict";r.d(t,{AD:()=>l,BV:()=>d,Dx:()=>h,Fz:()=>c,OA:()=>u,lo:()=>a,yv:()=>p});var i=r(17607),n=r(78257),o=r(4969);const s={page_not_found:[o.pA],feed_page:[n.XX],search_results:[n.AI],create_post:[o.Q7],categories_page:[n.ac,n.gn],comment_edit_page:[o.v1,o.AA],post_edit_page:[o.of],post_page_preview:[o.Bn],post_page:[o.Gz,o.j7],archive_page:[n.Ul]},a=(Object.entries(s),e=>e===n.XX),l=e=>(0,i.includes)([n.ac,n.gn],e),u=e=>e===n.vp,c=e=>(0,i.includes)([n.ac,n.gn,n.XX,n.vp,n.Ul,n.nN],e),d=e=>(0,i.includes)([o.Gz,o.j7],e),h=e=>e===n.Ul,p=e=>e===n.nN},57882:(e,t,r)=>{"use strict";function i(e){return e.displayName||e.name||"Component"}r.d(t,{Z:()=>i})},35139:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var i=r(17607);const n=(0,r(80406).P1)((e=>e.auth),(e=>(0,i.get)(e,"isAuthenticated")))},7086:(e,t,r)=>{"use strict";r.d(t,{D9:()=>y,EP:()=>P,G3:()=>l,JF:()=>m,L1:()=>d,ON:()=>S,W7:()=>v,X2:()=>c,f3:()=>f,hz:()=>g,tQ:()=>p,wH:()=>b,yF:()=>u,yv:()=>h});var i=r(17607),n=r(48063);const o=e=>e.basicParams||{},s=e=>o(e).viewMode,a=e=>o(e).formFactor,l=e=>o(e).language||"en",u=e=>o(e).isSSR,c=e=>o(e).isRTL,d=e=>o(e).isDebug,h=e=>o(e).isProduction,p=e=>s(e)===n.Ln,g=e=>s(e)===n.Lg,m=e=>s(e)===n.P1,f=e=>g(e)||m(e),y=e=>o(e).isSeo,v=e=>"Mobile"===a(e),b=e=>"Mobile"!==a(e),S=e=>{const t=o(e).biPageNumber;return void 0!==t&&1===t},P=e=>(0,i.get)(o(e),"timeZone")},18572:(e,t,r)=>{"use strict";r.d(t,{n:()=>s});var i=r(17607),n=r(70592);const o=(e,t)=>((e,t)=>(0,i.get)(e,t,{}))((e=>e.communitiesContext)(e),t),s=e=>Boolean(o(e,n.SANTA_MEMBERS_APP_ID).isInstalled)},27493:(e,t,r)=>{"use strict";r.d(t,{uI:()=>i});const i="my-posts-page"},3515:(e,t,r)=>{"use strict";r.d(t,{U:()=>i});const i="post-list-widget"},96394:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ag});var i={};r.r(i),r.d(i,{default:()=>tg});var n=r(27762),o=r.n(n);const s=new Map,a=e=>{const t=(r=e,Object.keys(r).filter((e=>void 0!==r[e])).sort().map((e=>`${e}=${r[e]}`)).join("&"));var r;if(s.has(t))return s.get(t);const i=(({language:e,country:t,...r})=>{if(void 0===Intl?.NumberFormat)throw new Error("Intl.NumberFormat is not available.");const i=t?`${e}-${t}`:e;return Intl.NumberFormat(i,{style:"currency",...r})})(e);return s.set(t,i),i};a.cache=s;const l={AC:"%N%n%O%n%A%n%C%n%Z",AD:"%N%n%O%n%A%n%Z %C",AE:"%N%n%O%n%A%n%S",AF:"%N%n%O%n%A%n%C%n%Z",AI:"%N%n%O%n%A%n%C%n%Z",AL:"%N%n%O%n%A%n%Z%n%C",AM:"%N%n%O%n%A%n%Z%n%C%n%S",AR:"%N%n%O%n%A%n%Z %C%n%S",AS:"%N%n%O%n%A%n%C %S %Z",AT:"%O%n%N%n%A%n%Z %C",AU:"%O%n%N%n%A%n%C %S %Z",AX:"%O%n%N%n%A%nAX-%Z %C%n\xc5LAND",AZ:"%N%n%O%n%A%nAZ %Z %C",BA:"%N%n%O%n%A%n%Z %C",BB:"%N%n%O%n%A%n%C, %S %Z",BD:"%N%n%O%n%A%n%C - %Z",BE:"%O%n%N%n%A%n%Z %C",BF:"%N%n%O%n%A%n%C %X",BG:"%N%n%O%n%A%n%Z %C",BH:"%N%n%O%n%A%n%C %Z",BL:"%O%n%N%n%A%n%Z %C %X",BM:"%N%n%O%n%A%n%C %Z",BN:"%N%n%O%n%A%n%C %Z",BR:"%O%n%N%n%A%n%D%n%C-%S%n%Z",BS:"%N%n%O%n%A%n%C, %S",BT:"%N%n%O%n%A%n%C %Z",BY:"%O%n%N%n%A%n%Z, %C%n%S",CA:"%N%n%O%n%A%n%C %S %Z",CC:"%O%n%N%n%A%n%C %S %Z",CH:"%O%n%N%n%A%nCH-%Z %C",CI:"%N%n%O%n%X %A %C %X",CL:"%N%n%O%n%A%n%Z %C%n%S",CN:"%Z%n%S%C%D%n%A%n%O%n%N",CO:"%N%n%O%n%A%n%C, %S, %Z",CR:"%N%n%O%n%A%n%S, %C%n%Z",CU:"%N%n%O%n%A%n%C %S%n%Z",CV:"%N%n%O%n%A%n%Z %C%n%S",CX:"%O%n%N%n%A%n%C %S %Z",CY:"%N%n%O%n%A%n%Z %C",CZ:"%N%n%O%n%A%n%Z %C",DE:"%N%n%O%n%A%n%Z %C",DK:"%N%n%O%n%A%n%Z %C",DO:"%N%n%O%n%A%n%Z %C",DZ:"%N%n%O%n%A%n%Z %C",EC:"%N%n%O%n%A%n%Z%n%C",EE:"%N%n%O%n%A%n%Z %C",EG:"%N%n%O%n%A%n%C%n%S%n%Z",EH:"%N%n%O%n%A%n%Z %C",ES:"%N%n%O%n%A%n%Z %C %S",ET:"%N%n%O%n%A%n%Z %C",FI:"%O%n%N%n%A%nFI-%Z %C",FK:"%N%n%O%n%A%n%C%n%Z",FM:"%N%n%O%n%A%n%C %S %Z",FO:"%N%n%O%n%A%nFO%Z %C",FR:"%O%n%N%n%A%n%Z %C",GB:"%N%n%O%n%A%n%C%n%Z",GE:"%N%n%O%n%A%n%Z %C",GF:"%O%n%N%n%A%n%Z %C %X",GG:"%N%n%O%n%A%n%C%nGUERNSEY%n%Z",GI:"%N%n%O%n%A%nGIBRALTAR%n%Z",GL:"%N%n%O%n%A%n%Z %C",GN:"%N%n%O%n%Z %A %C",GP:"%O%n%N%n%A%n%Z %C %X",GR:"%N%n%O%n%A%n%Z %C",GS:"%N%n%O%n%A%n%n%C%n%Z",GT:"%N%n%O%n%A%n%Z- %C",GU:"%N%n%O%n%A%n%C %Z",GW:"%N%n%O%n%A%n%Z %C",HK:"%S%n%C%n%A%n%O%n%N",HM:"%O%n%N%n%A%n%C %S %Z",HN:"%N%n%O%n%A%n%C, %S%n%Z",HR:"%N%n%O%n%A%nHR-%Z %C",HT:"%N%n%O%n%A%nHT%Z %C",HU:"%N%n%O%n%C%n%A%n%Z",ID:"%N%n%O%n%A%n%C%n%S %Z",IE:"%N%n%O%n%A%n%D%n%C%n%S%n%Z",IL:"%N%n%O%n%A%n%C %Z",IM:"%N%n%O%n%A%n%C%n%Z",IN:"%N%n%O%n%A%n%C %Z%n%S",IO:"%N%n%O%n%A%n%C%n%Z",IQ:"%O%n%N%n%A%n%C, %S%n%Z",IR:"%O%n%N%n%S%n%C, %D%n%A%n%Z",IS:"%N%n%O%n%A%n%Z %C",IT:"%N%n%O%n%A%n%Z %C %S",JE:"%N%n%O%n%A%n%C%nJERSEY%n%Z",JM:"%N%n%O%n%A%n%C%n%S %X",JO:"%N%n%O%n%A%n%C %Z",JP:"\u3012%Z%n%S%n%A%n%C%n%O%n%N%",KE:"%N%n%O%n%A%n%C%n%Z",KG:"%N%n%O%n%A%n%Z %C",KH:"%N%n%O%n%A%n%C %Z",KI:"%N%n%O%n%A%n%S%n%C",KN:"%N%n%O%n%A%n%C, %S",KP:"%Z%n%S%n%C%n%A%n%O%n%N",KR:"%S %C%D%n%A%n%O%n%N%n%Z",KW:"%N%n%O%n%A%n%Z %C",KY:"%N%n%O%n%A%n%S %Z",KZ:"%Z%n%S%n%C%n%A%n%O%n%N",LA:"%N%n%O%n%A%n%Z %C",LB:"%N%n%O%n%A%n%C %Z",LI:"%O%n%N%n%A%nFL-%Z %C",LK:"%N%n%O%n%A%n%C%n%Z",LR:"%N%n%O%n%A%n%Z %C",LS:"%N%n%O%n%A%n%C %Z",LT:"%O%n%N%n%A%nLT-%Z %C",LU:"%O%n%N%n%A%nL-%Z %C",LV:"%N%n%O%n%A%n%C, %Z",MA:"%N%n%O%n%A%n%Z %C",MC:"%N%n%O%n%A%nMC-%Z %C %X",MD:"%N%n%O%n%A%nMD-%Z %C",ME:"%N%n%O%n%A%n%Z %C",MF:"%O%n%N%n%A%n%Z %C %X",MG:"%N%n%O%n%A%n%Z %C",MH:"%N%n%O%n%A%n%C %S %Z",MK:"%N%n%O%n%A%n%Z %C",MM:"%N%n%O%n%A%n%C, %Z",MN:"%N%n%O%n%A%n%C%n%S %Z",MO:"%A%n%O%n%N",MP:"%N%n%O%n%A%n%C %S %Z",MQ:"%O%n%N%n%A%n%Z %C %X",MT:"%N%n%O%n%A%n%C %Z",MU:"%N%n%O%n%A%n%Z%n%C",MV:"%N%n%O%n%A%n%C %Z",MW:"%N%n%O%n%A%n%C %X",MX:"%N%n%O%n%A%n%D%n%Z %C, %S",MY:"%N%n%O%n%A%n%D%n%Z %C%n%S",MZ:"%N%n%O%n%A%n%Z %C%S",NA:"%N%n%O%n%A%n%C%n%Z",NC:"%O%n%N%n%A%n%Z %C %X",NE:"%N%n%O%n%A%n%Z %C",NF:"%O%n%N%n%A%n%C %S %Z",NG:"%N%n%O%n%A%n%D%n%C %Z%n%S",NI:"%N%n%O%n%A%n%Z%n%C, %S",NL:"%O%n%N%n%A%n%Z %C",NO:"%N%n%O%n%A%n%Z %C",NP:"%N%n%O%n%A%n%C %Z",NR:"%N%n%O%n%A%n%S",NZ:"%N%n%O%n%A%n%D%n%C %Z",OM:"%N%n%O%n%A%n%Z%n%C",PA:"%N%n%O%n%A%n%C%n%S",PE:"%N%n%O%n%A%n%C %Z%n%S",PF:"%N%n%O%n%A%n%Z %C %S",PG:"%N%n%O%n%A%n%C %Z %S",PH:"%N%n%O%n%A%n%D, %C%n%Z %S",PK:"%N%n%O%n%A%n%C-%Z",PL:"%N%n%O%n%A%n%Z %C",PM:"%O%n%N%n%A%n%Z %C %X",PN:"%N%n%O%n%A%n%C%n%Z",PR:"%N%n%O%n%A%n%C PR %Z",PT:"%N%n%O%n%A%n%Z %C",PW:"%N%n%O%n%A%n%C %S %Z",PY:"%N%n%O%n%A%n%Z %C",RE:"%O%n%N%n%A%n%Z %C %X",RO:"%N%n%O%n%A%n%Z %C",RS:"%N%n%O%n%A%n%Z %C",RU:"%N%n%O%n%A%n%C%n%S%n%Z",SA:"%N%n%O%n%A%n%C %Z",SC:"%N%n%O%n%A%n%C%n%S",SD:"%N%n%O%n%A%n%C%n%Z",SE:"%O%n%N%n%A%nSE-%Z %C",SG:"%N%n%O%n%A%nSINGAPORE %Z",SH:"%N%n%O%n%A%n%C%n%Z",SI:"%N%n%O%n%A%nSI-%Z %C",SJ:"%N%n%O%n%A%n%Z %C",SK:"%N%n%O%n%A%n%Z %C",SM:"%N%n%O%n%A%n%Z %C",SN:"%N%n%O%n%A%n%Z %C",SO:"%N%n%O%n%A%n%C, %S %Z",SR:"%N%n%O%n%A%n%C%n%S",SV:"%N%n%O%n%A%n%Z-%C%n%S",SZ:"%N%n%O%n%A%n%C%n%Z",TA:"%N%n%O%n%A%n%C%n%Z",TC:"%N%n%O%n%A%n%C%n%Z",TH:"%N%n%O%n%A%n%D %C%n%S %Z",TJ:"%N%n%O%n%A%n%Z %C",TM:"%N%n%O%n%A%n%Z %C",TN:"%N%n%O%n%A%n%Z %C",TR:"%N%n%O%n%A%n%Z %C/%S",TV:"%N%n%O%n%A%n%C%n%S",TW:"%Z%n%S%C%n%A%n%O%n%N",TZ:"%N%n%O%n%A%n%Z %C",UA:"%N%n%O%n%A%n%C%n%S%n%Z",UM:"%N%n%O%n%A%n%C %S %Z",US:"%N%n%O%n%A%n%C, %S %Z",UY:"%N%n%O%n%A%n%Z %C %S",UZ:"%N%n%O%n%A%n%Z %C%n%S",VA:"%N%n%O%n%A%n%Z %C",VC:"%N%n%O%n%A%n%C %Z",VE:"%N%n%O%n%A%n%C %Z, %S",VG:"%N%n%O%n%A%n%C%n%Z",VI:"%N%n%O%n%A%n%C %S %Z",VN:"%N%n%O%n%A%n%C%n%S %Z",WF:"%O%n%N%n%A%n%Z %C %X",XK:"%N%n%O%n%A%n%Z %C",YT:"%O%n%N%n%A%n%Z %C %X",ZA:"%N%n%O%n%A%n%D%n%C%n%Z",ZM:"%N%n%O%n%A%n%Z %C"},u={"%N":"name","%O":"organization","%A":"addressLines","%D":"dependentLocality","%C":"locality","%S":"administrativeArea","%Z":"postalCode","%X":"sortingCode","%R":"postalCountry"},c=["IE","NL","JP","PL","BR","PT","RU","AU","DE","CH"],d=(e,t)=>{const r=[];if(e.streetAddress){const t=(({name:e,number:t},r)=>{if(!e&&!t)return"";if(!e||!t)return e||t;let i=t,n=e;return c.includes(r)&&(i=e,n=t),`${i} ${n}`.trim()})(e.streetAddress,e.country);r.push(t)}else{e.addressLine&&r.push(e.addressLine);const t=e.addressLine2??e.addressLine_2;t&&r.push(t)}return{name:t?.fullName,organization:t?.company,postalCountry:e.country,administrativeArea:e.subdivision,locality:e.city,country:e.countryFullname,postalCode:e.postalCode,addressLines:r}},h=e=>"%"===e[0]&&"%n"!==e,p=e=>u[e],g=(e,t)=>"addressLines"===t?void 0!==e.addressLines&&e.addressLines.length>0:void 0!==e[t]&&""!==e[t],m=({address:e,addressContactDetails:t},{appendCountry:r=!0}={})=>{const i=d(e,t),n=(e=>{const t=[];let r=0;for(;r{const t=e?.toUpperCase();return t&&t in l?l[t]:"%N%n%O%n%A%n%C"})(e.country)),o=((e,t)=>{const r=[];let i=0;for(;i0&&h(r[r.length-1]),s=i===n.length-1||"%n"===n[i+1]||g(e,p(t[i+1]));o&&s&&r.push(n)}i+=1}return r})(i,n);return((e,t,r)=>{const i=[];let n="";for(const r of t)if("%n"===r)n.length>0&&(i.push(n),n="");else if(h(r)){const t=p(r);if("postalCountry"===t)continue;if("addressLines"===t){e.addressLines&&e.addressLines.length>0&&(n+=e.addressLines[0],i.push(n),n="",2===e.addressLines.length&&i.push(e.addressLines[1]));continue}n+=e[t]}else n+=r;return n.length>0&&i.push(n),r.appendCountry&&e.country&&i.push(e.country),i})(i,o,{appendCountry:r})};var f=r(85556);var y=r(69293),v=r.n(y),b=r(85225),S=r.n(b),P=function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}l((i=i.apply(e,t||[])).next())}))},w=function(e,t){var r,i,n,o,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(n=2&o[0]?i.return:o[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,o[1])).done)return n;switch(i=0,n&&(o=[2&o[0],n.value]),o[0]){case 0:case 1:n=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(n=s.trys,(n=n.length>0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]{const r=(0,n.useMemo)((()=>({errorMonitor:e})),[e]);return o().createElement(N.Provider,{value:r.errorMonitor,children:t})});var D,Z,H=r(23615),B=r.n(H),W=o().createContext({ready:!1,set:null,get:null,getDefaultValue:null,reset:null,resetAll:null,publishEvent:null}),F=W.Consumer,G=function(e){function t(){var t=this.constructor,r=e.call(this,'\nSettingsProvider is not ready.\nUsually this case should be unreachable. \nIn case you face it use "context.ready: boolean" flag not determine if it possible to set/get params. \n')||this;return Object.setPrototypeOf(r,t.prototype),r}return(0,f.__extends)(t,e),t}(Error);!function(e){e.Set="set",e.Reset="reset",e.ResetAll="resetAll",e.PublishEvent="publishEvent"}(D||(D={})),function(e){e.Setting="Settings",e.Styles="Styles"}(Z||(Z={}));var U,z=function(e){function t(t,r){var i=this.constructor,n=e.call(this,"\nCan't modify ".concat(r," values from current environment.\nPlease make sure you are not using `").concat(r,".").concat(t,"(...)` from the widget part.\n"))||this;return Object.setPrototypeOf(n,i.prototype),n}return(0,f.__extends)(t,e),t}(Error);!function(e){e.Number="Number",e.Boolean="Boolean",e.String="String",e.Text="Text",e.Object="Object"}(U||(U={}));var j=function(){var e,t=this;this.handlers=((e={})[U.Object]={serialize:function(e){return"string"==typeof e?(console.error("\u26a0\ufe0f Seems like you are calling `settings.set(param, JSON.stringify(value))`. Please, pass a plain object/array and tpa-settings will serializate it."),e):JSON.stringify(e)},deserialize:function(e){return"string"!=typeof e?e:JSON.parse(e)}},e),this.serialize=function(e,r){return e.type===U.Object?t.handlers[U.Object].serialize(r):r},this.deserialize=function(e,r){return e.type===U.Object?t.handlers[U.Object].deserialize(r):r}},V=function(e){function t(){var t=this.constructor,r=e.call(this,"\nNo `Wix`, `editorSDK` or `publicData` was passed to TPASettingsProvider.\nIn order to work with tpa-settings, you have to pass either Wix SDK or Editor SDK for Settings panel mode or publicData for Widget mode.\n")||this;return Object.setPrototypeOf(r,t.prototype),r}return(0,f.__extends)(t,e),t}(Error),K=function(e,t){return e.localeCompare(t)},q=function(e,t){var r=t.isMobile,i=t.language,n=void 0===i?"en":i;return"function"==typeof e.dangerousKeyTransformationOverride?e.dangerousKeyTransformationOverride(e.key,{isMobile:r,language:n}):function(e,t,r){if("string"!=typeof e)throw new Error("`generateKey` expects key to be passed and be a string");if(!t)throw new Error("`generateKey` expects options to be passed");return Object.keys(r).sort(K).reduce((function(e,i){var n=r[i]===t[i],o=!t[i]&&!r[i];return n||o?e:e+"\u25b6\ufe0e"+("boolean"!=typeof t[i]||r[i]?i+":"+t[i]:i)}),e)}(e.key,{m:r,l:n},{m:!1,l:"en"})},X=function(e){return e.type===U.Text},$=function(e,t){return{languageAndMobile:q(e,{isMobile:t.isMobile,language:t.language}),language:q(e,{isMobile:!1,language:t.language}),mobile:q(e,{isMobile:t.isMobile}),original:e.key}},Y=function(e){return void 0===e.inheritDesktop||e.inheritDesktop},Q=function(e){var t=e.environmentLabel;return function(e){throw new Error("It is not possible to translate ".concat(e,". Translate function was not passed to the ").concat(t))}},J=new j;function ee(e,t,r){void 0===r&&(r={});var i,n=X(t),o=$(t,{isMobile:r.isMobile,language:n?r.language:void 0}),s=Y(t);return n?void 0!==e[o.languageAndMobile]?i=e[o.languageAndMobile]:s&&void 0!==e[o.language]&&(i=e[o.language]):void 0!==e[o.mobile]?i=e[o.mobile]:s&&void 0!==e[o.original]&&(i=e[o.original]),J.deserialize(t,i)}var te=!1;function re(e,t,r,i){void 0===r&&(r={});var n=(0,f.__rest)(r,[]);void 0===i&&(i="COMPONENT");var o=e;e.COMPONENT||(te||(console.warn("`getSettingsValue` or `getSettingsValues` should accept whole public data object. Probably, data was passed only for one scope."),te=!0),o={COMPONENT:e,APP:{}});var s="COMPONENT"===i&&t.inheritFromAppScope,a=ee(o[i],t,n);return void 0===a&&s&&(a=ee(o.APP,t,n)),t.getDefaultValue&&void 0===a?ie(o,i,t,n):a}function ie(e,t,r,i){var n,o;void 0===i&&(i={});var s=null!==(n=i.t)&&void 0!==n?n:Q({environmentLabel:null!==(o=i.environmentLabel)&&void 0!==o?o:"`getSettingsValue` function"});return r.getDefaultValue({isMobile:i.isMobile,isRTL:i.isRTL,isEditorX:i.isEditorX,t:s,presetId:i.presetId,experiments:i.experiments,getSettingParamValue:function(r,n){return void 0===n&&(n={}),re(e,r,(0,f.__assign)((0,f.__assign)((0,f.__assign)({},i),n),{t:s}),t)}})}var ne,oe=function(e){var t,r;return{APP:null!==(t=null==e?void 0:e.APP)&&void 0!==t?t:{},COMPONENT:null!==(r=null==e?void 0:e.COMPONENT)&&void 0!==r?r:{}}},se=function(e){function t(t){var r=e.call(this,t)||this;r.handleRevisionChanged=function(){return(0,f.__awaiter)(r,void 0,void 0,(function(){var e,t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return e=this.props.SDKAdapter,this.isWidgetMode()?[3,2]:[4,e.getAllData()];case 1:t=r.sent(),this.setState({publicData:oe(t)}),r.label=2;case 2:return[2]}}))}))},r.getLanguageForParam=function(e){return X(e)?r.props.language:void 0},r.handleGetParam=function(e){var t=r.props.scope;if(!r.state.ready)throw new G;return re(r.state.publicData,e,{t:r.props.t,experiments:r.props.experiments,isMobile:r.props.isMobile,isEditorX:r.props.isEditorX,isRTL:r.props.isRTL,language:r.props.language,presetId:r.state.publicData[t].presetId,environmentLabel:""},t)},r.handleGetDefaultValue=function(e){var t=r.props.scope;return ie(r.state.publicData,t,e,{t:r.props.t,experiments:r.props.experiments,isMobile:r.props.isMobile,isEditorX:r.props.isEditorX,isRTL:r.props.isRTL,presetId:r.state.publicData[t].presetId,environmentLabel:""})},r.handleSetParam=function(e,t){var i,n,o=r.props.scope;if(!r.state.ready)throw new G;if(r.isWidgetMode())throw new z(D.Set,Z.Setting);var s=r.serializer.serialize(e,t),a=q(e,{isMobile:r.props.isMobile,language:r.getLanguageForParam(e)});r.state.publicData[o][a]!==s&&(r.setState((function(e){var t,r;return(0,f.__assign)((0,f.__assign)({},e),{publicData:(0,f.__assign)((0,f.__assign)({},e.publicData),(t={},t[o]=(0,f.__assign)((0,f.__assign)({},e.publicData[o]),(r={},r[a]=s,r)),t))})})),r.setWixDataParam(a,s),null===(i=r.props.history)||void 0===i||i.addDebounced(e.key),null===(n=r.props.bi)||void 0===n||n.settingsChanged({parameter:e.key,value:s}))},r.handleResetParam=function(e){var t,i,n=r.props.scope;if(r.isWidgetMode())throw new z(D.Reset,Z.Setting);var o=q(e,{isMobile:r.props.isMobile,language:r.getLanguageForParam(e)});r.setState((function(e){var t,r;return(0,f.__assign)((0,f.__assign)({},e),{publicData:(0,f.__assign)((0,f.__assign)({},e.publicData),(t={},t[n]=(0,f.__assign)((0,f.__assign)({},e.publicData[n]),(r={},r[o]=void 0,r)),t))})})),r.removeWixDataParam(o),null===(t=r.props.history)||void 0===t||t.addDebounced(e.key),null===(i=r.props.bi)||void 0===i||i.settingsChanged({parameter:e.key,value:""})},r.handleResetAll=function(e){var t,i;if(r.isWidgetMode())throw new z(D.ResetAll,Z.Setting);null===(t=r.props.history)||void 0===t||t.startBatch(),Object.keys(e).forEach((function(t){r.handleResetParam(e[t])})),null===(i=r.props.history)||void 0===i||i.endBatch("All settings")},r.handlePublishEvent=function(e,t){if(r.isWidgetMode())throw new z(D.PublishEvent,Z.Setting);r.setWixDataParam("___settingsEvent",{event:e,payload:{id:Date.now(),value:t}})};var i=t.publicData;return r.state={ready:!!i,publicData:oe(i)},r.serializer=new j,r}return(0,f.__extends)(t,e),t.prototype.componentDidMount=function(){return(0,f.__awaiter)(this,void 0,void 0,(function(){var e,t,r,i=this;return(0,f.__generator)(this,(function(n){switch(n.label){case 0:return e=this.props,t=e.SDKAdapter,e.publicData?[2]:t?[4,t.getAllData()]:[3,2];case 1:return r=n.sent(),this.setState({ready:!0,publicData:oe(r)}),window.onunload=function(){i.handlePublishEvent("reset",{})},[2];case 2:throw new V}}))}))},t.prototype.componentDidUpdate=function(e){var t=this.props,r=t.publicData,i=t.revisionID;this.isWidgetMode()&&r!==e.publicData&&this.setState({ready:!!r,publicData:oe(r)}),i!==e.revisionID&&this.handleRevisionChanged()},t.prototype.isWidgetMode=function(){return this.props.publicData},t.prototype.setWixDataParam=function(e,t){var r=this.props,i=r.SDKAdapter,n=r.scope;i.setData(e,t,n)},t.prototype.removeWixDataParam=function(e){var t=this.props,r=t.SDKAdapter,i=t.scope;r.removeData(e,i)},t.prototype.render=function(){return o().createElement(W.Provider,{value:{ready:this.state.ready,get:this.handleGetParam,getDefaultValue:this.handleGetDefaultValue,set:this.handleSetParam,reset:this.handleResetParam,resetAll:this.handleResetAll,publishEvent:this.handlePublishEvent}},this.props.children)},t.propTypes={SDKAdapter:B().object,settingsValues:B().object,t:B().func,experiments:B().object,bi:B().object,isMobile:B().bool,isEditorX:B().bool,scope:B().string.isRequired},t.defaultProps={scope:"COMPONENT"},t}(o().Component),ae=r(17607),le=o().createContext({ready:!1,set:null,get:null,getDefaultValue:null,reset:null,resetAll:null,changeSiteColors:null,getStylesForAllBreakpoints:null}),ue=le.Consumer;!function(e){e.Number="Number",e.Boolean="Boolean",e.Font="Font",e.Color="Color"}(ne||(ne={}));var ce=r(96855),de=r.n(ce);const he=function(e,t){var r,i,n;if(e){var o=de().get(e);if(null===o)throw new Error("Unable to parse color from string: "+e);i=o.value.slice(0,3),n=null!==(r=o.value[3])&&void 0!==r?r:1}else i=[0,0,0],n=1;return{rgb:function(){var e;return(e=de().to).rgb.apply(e,(0,f.__spreadArray)((0,f.__spreadArray)([],i,!1),[null!=t?t:n],!1))},hex:function(){return e=i,t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase(),"000000".substring(t.length)+t;var e,t},opacity:function(){return null!=t?t:n}}};function pe(e){var t=e.styles,r=e.textPresets,i=e.colors,n=e.isMobile,o=e.isRTL,s=e.isEditorX,a=e.dimensions,l=e.experiments,u=e.styleParamsPerBreakpointMode;return function(e){return e.getDefaultValue({colors:i,textPresets:r,isMobile:n,isRTL:o,isEditorX:s,dimensions:a,experiments:l,getStyleParamValue:function(e,c){return void 0===c&&(c={}),ge((0,f.__assign)({storage:t,colors:i,textPresets:r,isMobile:n,isRTL:o,isEditorX:s,dimensions:a,experiments:l,styleParamsPerBreakpointMode:u},c))(e)}})}}function ge(e){var t=e.storage,r=e.textPresets,i=e.colors,n=void 0===i?[]:i,o=e.isMobile,s=e.isRTL,a=e.isEditorX,l=e.dimensions,u=e.experiments,c=e.styleParamsPerBreakpointMode,d=function(e){return(t.numbers||{})[e]},h=function(e){return(t.booleans||{})[e]},p=function(e){return(t.fonts||{})[e]},g=function(e){return(t.colors||{})[e]};return function(e){var i,m,y=(i={},i[ne.Number]=d,i[ne.Boolean]=h,i[ne.Font]=p,i[ne.Color]=g,i)[e.type],v=e.key||e.name;if(c)m=y(v);else{var b=q((0,f.__assign)((0,f.__assign)({},e),{key:v}),{isMobile:o});m=y(b);var S=Y(e);b!==v&&S&&void 0===m&&(m=y(v))}return void 0===m&&e.getDefaultValue?pe({styles:t,textPresets:r,colors:n,isMobile:o,isRTL:s,isEditorX:a,dimensions:l,experiments:u,styleParamsPerBreakpointMode:c})(e):m}}var me=function(e){function t(t){var r=this.constructor,i=e.call(this,"\nYou are calling `getDefaultValue` for styles param, but it wasn't specified.\nPlease check the `".concat(t,"` style param implementation.\n"))||this;return Object.setPrototypeOf(i,r.prototype),i}return(0,f.__extends)(t,e),t}(Error);var fe=function(){function e(e){var t=e.styleParams,r=e.wixStyles,i=e.textPresets,n=e.colors,o=e.history,s=e.bi,a=e.isMobile,l=e.isRTL,u=e.isEditorX,c=e.dimensions,d=e.experiments,h=e.styleParamsPerBreakpointMode,p=e.currentStylesGetter,g=e.allStylesGetter,m=this;this.set=function(e,t,r){var i,n;void 0===r&&(r={}),e.name&&console.warn('Check the "'.concat(e.name,'" style param \u2013 property "name" is deprecated. Please use "key"'));var o=e.key||e.name,s=q((0,f.__assign)((0,f.__assign)({},e),{key:o}),{isMobile:!m.styleParamsPerBreakpointMode&&m.isMobile});switch(e.type){case ne.Number:m.setNumberParam(s,t,r);break;case ne.Boolean:m.setBooleanParam(s,t,r);break;case ne.Font:m.setFontParam(s,t,r);break;case ne.Color:m.setColorParam(s,t,r);break;default:console.error('"'.concat(e.type,'" is not supported type.'))}null===(i=m.history)||void 0===i||i.addDebounced(o),null===(n=m.bi)||void 0===n||n.settingsChanged({parameter:o,value:t})},this.getCurrentStyles=function(){return m.currentStylesGetter?m.wixStyles.decode(m.currentStylesGetter(),m.colors,m.textPresets):m.styles},this.get=function(e){return ge({storage:m.getCurrentStyles(),colors:m.colors,textPresets:m.textPresets,isMobile:m.isMobile,isRTL:m.isRTL,isEditorX:m.isEditorX,dimensions:m.dimensions,experiments:m.experiments,styleParamsPerBreakpointMode:m.styleParamsPerBreakpointMode})(e)},this.getDefaultValue=function(e){if(!e.getDefaultValue)throw new me(e.key);return pe({styles:m.styles,colors:m.colors,textPresets:m.textPresets,isMobile:m.isMobile,isRTL:m.isRTL,isEditorX:m.isEditorX,dimensions:m.dimensions,experiments:m.experiments,styleParamsPerBreakpointMode:m.styleParamsPerBreakpointMode})(e)},this.reset=function(e){var t=pe({styles:m.styles,colors:m.colors,textPresets:m.textPresets,isMobile:m.isMobile,isRTL:m.isRTL,isEditorX:m.isEditorX,dimensions:m.dimensions,experiments:m.experiments,styleParamsPerBreakpointMode:m.styleParamsPerBreakpointMode});m.set(e,t(e))},this.resetAll=function(e){var t,r;null===(t=m.history)||void 0===t||t.startBatch(),Object.keys(e).forEach((function(t){m.reset(e[t])})),null===(r=m.history)||void 0===r||r.endBatch("All styles")},this.wixStyles=r,this.textPresets=i,this.colors=n,this.styles=t,this.history=o,this.bi=s,this.isMobile=a,this.isRTL=l,this.isEditorX=u,this.dimensions=c,this.experiments=d,this.styleParamsPerBreakpointMode=h,this.currentStylesGetter=p,this.allStylesGetter=g}return e.prototype.setStylesParam=function(e,t,r){var i,n;this.styles=(0,f.__assign)((0,f.__assign)({},this.styles),((i={})[e]=(0,f.__assign)((0,f.__assign)({},this.styles[e]),((n={})[t]=r,n)),i))},e.prototype.setBooleanParam=function(e,t,r){this.setStylesParam("booleans",e,t),this.wixStyles.setBooleanParam(e,t,r)},e.prototype.setColorParam=function(e,t,r){this.setStylesParam("colors",e,function(e,t){if(null==e?void 0:e.name){var r=t.find((function(t){return t.name===e.name}));return(0,f.__assign)((0,f.__assign)({},e),{value:he(r.value,e.opacity).rgb()})}return e}(t,this.colors)),this.wixStyles.setColorParam(e,t,r)},e.prototype.setFontParam=function(e,t,r){this.setStylesParam("fonts",e,t),this.wixStyles.setFontParam(e,t,r)},e.prototype.setNumberParam=function(e,t,r){this.setStylesParam("numbers",e,t),this.wixStyles.setNumberParam(e,t,r)},e.prototype.getAll=function(){return JSON.parse(JSON.stringify(this.getCurrentStyles()))},e.prototype.getAllForAllBreakpoints=function(){var e=this;return this.allStylesGetter?JSON.parse(JSON.stringify(this.allStylesGetter().map((function(t){return e.wixStyles.decode(t,e.colors,e.textPresets)})))):[this.getAll()]},e.prototype.setStyleParams=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return t=this,[4,this.wixStyles.decode(e,this.colors,this.textPresets)];case 1:return t.styles=r.sent(),[2]}}))}))},e.prototype.handleSiteColorChange=function(e){var t=this.styles.colors,r=Object.keys(t).reduce((function(r,i){return t[i].name?r[i]=(0,f.__assign)((0,f.__assign)({},t[i]),{value:e[t[i].name]}):r[i]=t[i],r}),{});this.styles=(0,f.__assign)((0,f.__assign)({},this.styles),{colors:r})},e}();function ye(e,t){if(void 0===t&&(t={}),!t[e])return null;var r=t[e];return{size:parseInt(r.size,10),family:r.fontFamily,preset:e,style:{bold:"bold"===r.weight,italic:"italic"===r.style,underline:!1},fontStyleParam:!1}}function ve(e,t,r){var i=Object.keys(e.fonts||[]).reduce((function(t,i){var n,o,s=e.fonts[i];return(0,f.__assign)((0,f.__assign)({},t),{fonts:(0,f.__assign)((0,f.__assign)({},t.fonts),(n={},n[i]="Custom"!==s.preset&&null!==(o=ye(e.fonts[i].preset,r))&&void 0!==o?o:s,n))})}),{fonts:{}}).fonts,n=Object.keys(e.colors||[]).reduce((function(r,i){var n;try{var o=function(e,t){var r;if(!e.value)return null;if(e.themeName){var i=t.find((function(t){return t.reference===e.themeName||t.name===e.themeName})),n=he(e.value||i.value);if(i)return{value:n.rgb(),name:i.name,opacity:n.opacity()}}var o=he(e.value);return{value:o.rgb(),name:null!==(r=e.themeName)&&void 0!==r?r:null,opacity:o.opacity()}}(e.colors[i],t);return(0,f.__assign)((0,f.__assign)({},r),{colors:(0,f.__assign)((0,f.__assign)({},r.colors),(n={},n[i]=o,n))})}catch(e){return(0,f.__assign)((0,f.__assign)({},r),{errors:r.errors.concat(i)})}}),{colors:{},errors:[]}),o=n.colors;n.errors;return(0,f.__assign)((0,f.__assign)({},e),{fonts:i,colors:o})}var be,Se=function(){function e(e,t){var r=this;this.refresh=function(){return(0,f.__awaiter)(r,void 0,void 0,(function(){var e,t;return(0,f.__generator)(this,(function(r){switch(r.label){case 0:return this.editorSDK?[4,this.editorSDK.components.getById("token",{id:new URLSearchParams(window.location.search).get("origCompId")})]:[3,3];case 1:return e=r.sent(),[4,this.editorSDK.document.tpa.getStyleParams("token",{compRef:e})];case 2:return t=r.sent(),[2,this.normalizeStylesReceivedFromEditorSDK(t)];case 3:return[2]}}))}))},this.decode=function(e,t,r){return e?ve(e,t,r):null},this.SDKAdapter=e,this.editorSDK=t}return e.prototype.setBooleanParam=function(e,t,r){this.SDKAdapter.setBooleanParam(e,t,r)},e.prototype.setFontParam=function(e,t,r){this.SDKAdapter.setFontParam(e,t,r)},e.prototype.setNumberParam=function(e,t,r){this.SDKAdapter.setNumberParam(e,t,r)},e.prototype.setColorParam=function(e,t,r){return(0,f.__awaiter)(this,void 0,void 0,(function(){var i,n;return(0,f.__generator)(this,(function(o){switch(o.label){case 0:return[4,this.SDKAdapter.getSiteColors()];case 1:return i=o.sent(),n=function(e,t){if(e.name){var r=t.find((function(t){return t.name===e.name})),i=he(r.value,e.opacity).rgb();return{opacity:e.opacity,rgba:i,color:{value:i,name:r.name,reference:r.reference}}}return{opacity:e.opacity,rgba:he(e.value,e.opacity).rgb(),color:!1}}(t,i),this.SDKAdapter.setColorParam(e,n,r),[2]}}))}))},e.prototype.load=function(){return this.SDKAdapter.getStyleParams()},e.prototype.getSiteTextPresets=function(){return this.SDKAdapter.getSiteTextPresets()},e.prototype.getSiteColors=function(){return this.SDKAdapter.getSiteColors()},e.prototype.normalizeStylesReceivedFromEditorSDK=function(e){return(0,f.__awaiter)(this,void 0,void 0,(function(){var t,r,i,n,o,s;return(0,f.__generator)(this,(function(a){switch(a.label){case 0:for(o in t=function(t){var i,n;return(0,f.__generator)(this,(function(o){switch(o.label){case 0:return e.colors.hasOwnProperty(t)&&e.colors[t].hasOwnProperty("themeName")?[4,r.getSiteColors()]:[3,2];case 1:i=o.sent(),n=i.find((function(r){return r.name===e.colors[t].themeName})),e.colors[t].themeName=n.reference,o.label=2;case 2:return[2]}}))},r=this,i=e.colors,n=[],i)n.push(o);s=0,a.label=1;case 1:return so().createElement("div",null,"Loading...");var Ke=r(93231),qe=r.n(Ke),Xe=r(55839),$e=r.n(Xe),Ye=r(13846);const Qe=e=>{class t extends o().Component{render(){return o().createElement("div",{dir:this.props.isRTL?"rtl":void 0},o().createElement(e,this.props))}}return qe()(t,"displayName","withDirection("+(0,Ye.Z)(e)+")"),$e()(t,e),t};function Je(e){return t=>{if(!t.state)throw new Error("Controller not initialized. Cannot render without props.");return o().createElement(e,t)}}const et=e=>{class t extends o().Component{constructor(){super(...arguments),qe()(this,"updateLayoutIfNeeded",(()=>{this.lastHeight!==this.node.offsetHeight&&(this.lastHeight=this.node.offsetHeight,this.props.host.updateLayout())})),qe()(this,"updateLayoutIfNeededDebounced",(0,ae.debounce)(this.updateLayoutIfNeeded,100,{leading:!0}))}componentDidMount(){this.node=document.getElementById(this.props.host.id),this.node&&(this.node.style.minWidth=0,this.observer=new MutationObserver(this.updateLayoutIfNeeded),this.observer.observe(this.node,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.lastHeight=this.node.offsetHeight,window.addEventListener("resize",this.updateLayoutIfNeededDebounced),window.addEventListener("transitionend",this.updateLayoutIfNeeded))}componentWillUnmount(){this.node&&(this.observer.disconnect(),window.removeEventListener("resize",this.updateLayoutIfNeededDebounced),window.removeEventListener("transitionend",this.updateLayoutIfNeeded))}render(){return o().createElement(e,this.props)}}return qe()(t,"displayName","withLayoutUpdate("+(0,Ye.Z)(e)+")"),$e()(t,e),t},tt=e=>t=>{class r extends o().Component{render(){const{provisioningInProgress:r}=this.props;return r?o().createElement(e,this.props):o().createElement(t,this.props)}}return qe()(r,"displayName","withProvisioning("+(0,Ye.Z)(t)+")"),$e()(r,t),r};var rt=r(60042),it=r.n(rt),nt=r(4772);function ot(e){var t=e.i18n,r=e.defaultNS,i=e.children,o=(0,n.useMemo)((function(){return{i18n:t,defaultNS:r}}),[t,r]);return(0,n.createElement)(nt.OO.Provider,{value:o},i)}var st=r(84449);const at="ssr-success",lt=e=>e.appLoaded.hasReported;var ut=r(7086),ct=r(69679);const dt=()=>{const e=(0,ct.v9)(ut.yF),t=(0,ct.v9)(((e,t)=>t)),r=(0,ct.v9)(lt),i=(0,ct.v9)(ut.L1),s=(0,ct.v9)(ut.yv),a=(0,ct.v9)(ut.ON),l=(0,ct.ol)(),u=()=>{const e=i&&!s;var r;e&&console.log("applicationLoaded"),a&&(l.interactionStarted(at),"undefined"!=typeof window&&!window.clientSideRender&&(null==(r=window.sssr)?void 0:r.success)&&(e&&console.log("Report SSR success"),l.interactionEnded(at))),t.appLoadBI.loaded(),requestAnimationFrame((()=>{l.appLoaded()}))},c=(0,n.useRef)();return(0,n.useEffect)((()=>(e||r||c.current||(c.current=setTimeout((()=>u())),"undefined"!=typeof performance&&performance.mark&&performance.mark("communities-app-loaded")),()=>{clearTimeout(c.current)}))),r?o().createElement("div",{"data-hook":"blog-loaded-indicator",style:{display:"none"}}):null};var ht=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some((function(e,i){return e[0]===t&&(r=i,!0)})),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(t,r){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,i=e(r,t);~i&&r.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,i=this.__entries__;r0},e.prototype.connect_=function(){pt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){pt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;ft.some((function(e){return!!~r.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),bt=function(e,t){for(var r=0,i=Object.keys(t);r0},e}(),Lt="undefined"!=typeof WeakMap?new WeakMap:new ht,Mt=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=vt.getInstance(),i=new Tt(t,r,this);Lt.set(this,i)};["observe","unobserve","disconnect"].forEach((function(e){Mt.prototype[e]=function(){var t;return(t=Lt.get(this))[e].apply(t,arguments)}}));const Rt=void 0!==gt.ResizeObserver?gt.ResizeObserver:Mt;var Nt=r(73119),kt=r.n(Nt);const Dt=()=>(0,n.useContext)(Zt),Zt=(0,n.createContext)({rootWidth:void 0});function Ht(e){return t=>{const r=Dt();return o().createElement(e,kt()({},t,r))}}const Bt=Zt,Wt={xs:e=>e<660,s:e=>e>=660&&e<686,sm:e=>e>=686&&e<980,md:e=>e>=980&&e<1280,lg:e=>e>=1280&&e<1920,xl:e=>e>=1920,"lt-s":e=>e<660,"lt-sm":e=>e<686,"lt-md":e=>e<980,"lt-lg":e=>e<1280,"lt-xl":e=>e<1920,"gt-xs":e=>e>=660,"gt-s":e=>e>=686,"gt-sm":e=>e>=980,"gt-md":e=>e>=1280,"gt-lg":e=>e>=1920,"gt-740":e=>e>=740,"gt-830":e=>e>=830,"gt-886":e=>e>=886,"gt-940":e=>e>=940,"gt-1000":e=>e>=1e3,"gt-1080":e=>e>=1080,"gt-1200":e=>e>=1200,"w686-745":e=>e>=686&&e<=745,"w686-980":e=>e>=686&&e<=980,"lte-w980":e=>e<=980,"lte-post_content_area_min":e=>e<=746,"lte-post_content_area_small":e=>e<=900,"lte-banner-w1564":e=>e<=1564,"lte-banner-w1425":e=>e<=1425,"lte-banner-w1181":e=>e<=1181,"lte-banner-w980":e=>e<=980,"lte-category-header-w1364 ":e=>e<=1364},Ft=Object.keys(Wt),Gt=(e,t)=>{if("number"!=typeof e)return t?"use-media-queries":void 0;const r=Ft.reduce(((t,r)=>(Wt[r](e)&&t.push(r),t)),[]);return it()(r)};class Ut extends n.Component{constructor(){super(...arguments),qe()(this,"nodeRef",o().createRef()),qe()(this,"state",{width:this.props.width,classList:Gt(this.props.width,this.props.isDesktop)})}componentDidMount(){this.resizeObserver=new Rt((e=>{const t=Math.floor(e[0].contentRect.width);if(this.state.width!==t){const e=Gt(t,this.props.isDesktop);this.setState({width:t,classList:e})}})),this.resizeObserver.observe(this.nodeRef.current)}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}render(){const{width:e,classList:t}=this.state,{className:r,dataHook:i}=this.props;return o().createElement("div",{ref:this.nodeRef,style:{"--root-width":e?e+"px":"100vw"},className:it()(t,r),"data-hook":i},o().createElement(Bt.Provider,{value:{rootWidth:e}},this.props.children))}}const zt=(0,ct.$j)(((e,t,r,i)=>({width:i.dimensions.width||void 0,isDesktop:(0,ut.wH)(e)})))(Ut);var jt=r(77897);function Vt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Kt="function"==typeof Symbol&&Symbol.observable||"@@observable",qt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xt={INIT:"@@redux/INIT"+qt(),REPLACE:"@@redux/REPLACE"+qt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qt()}};function $t(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Yt(e,t,r){var i;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(Vt(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(Vt(1));return r(Yt)(e,t)}if("function"!=typeof e)throw new Error(Vt(2));var n=e,o=t,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function c(){if(l)throw new Error(Vt(3));return o}function d(e){if("function"!=typeof e)throw new Error(Vt(4));if(l)throw new Error(Vt(5));var t=!0;return u(),a.push(e),function(){if(t){if(l)throw new Error(Vt(6));t=!1,u();var r=a.indexOf(e);a.splice(r,1),s=null}}}function h(e){if(!$t(e))throw new Error(Vt(7));if(void 0===e.type)throw new Error(Vt(8));if(l)throw new Error(Vt(9));try{l=!0,o=n(o,e)}finally{l=!1}for(var t=s=a,r=0;re,i.type=e,i};const Jt={},er=()=>{const e=Date.now(),t=(()=>{let e,t;return{promise:new Promise(((r,i)=>{e=r,t=i})),resolve:e,reject:t}})();return Jt[e]=t,{correlationId:e,promise:t.promise}},tr=(Qt("modal/OPEN",((e,t,r,i)=>({type:e,props:t,correlationId:i})),((e,t,r,i)=>r)),Qt("modal/CLOSE",(e=>e)),e=>(t,r,i)=>{const{correlationId:n,promise:o}=er();return e(t,r,i,n),o});const rr="root/SET_STATE",ir=Qt(rr),nr="root/SET_HOST",or=Qt(nr),sr=function(e,t){void 0===e&&(e={});let{type:r,payload:i}=t;switch(r){case rr:return{...e,state:i};case nr:return{...e,host:i};default:return e}};var ar,lr=r(76393),ur=r(41905);function cr(e){return e.type===ar.literal}function dr(e){return e.type===ar.argument}function hr(e){return e.type===ar.number}function pr(e){return e.type===ar.date}function gr(e){return e.type===ar.time}function mr(e){return e.type===ar.select}function fr(e){return e.type===ar.plural}function yr(e){return e.type===ar.pound}function vr(e){return!(!e||"object"!=typeof e||0!==e.type)}function br(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(ar||(ar={}));var Sr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),Pr=function(){return Pr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0){for(t=1,r=1;t1&&"}"===e)},Le="\n",Me=et("\n",!1),Re=function(e){return"{"===e||"}"===e||At()&&"#"===e},Ne=rt("argNameOrNumber"),ke=rt("argNumber"),De="0",Ze=et("0",!1),He=function(){return 0},Be=/^[1-9]/,We=tt([["1","9"]],!1,!1),Fe=/^[0-9]/,Ge=tt([["0","9"]],!1,!1),Ue=function(e){return parseInt(e.join(""),10)},ze=rt("argName"),je=0,Ve=0,Ke=[{line:1,column:1}],qe=0,Xe=[],$e=0;if(void 0!==t.startRule){if(!(t.startRule in n))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=n[t.startRule]}function Ye(){return e.substring(Ve,je)}function Qe(){return nt(Ve,je)}function Je(e,t){throw function(e,t){return new wr(e,[],"",t)}(e,t=void 0!==t?t:nt(Ve,je))}function et(e,t){return{type:"literal",text:e,ignoreCase:t}}function tt(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function rt(e){return{type:"other",description:e}}function it(t){var r,i=Ke[t];if(i)return i;for(r=t-1;!Ke[r];)r--;for(i={line:(i=Ke[r]).line,column:i.column};rqe&&(qe=je,Xe=[]),Xe.push(e))}function st(e,t,r){return new wr(wr.buildMessage(e,t),e,t,r)}function at(){return lt()}function lt(){var e,t;for(e=[],t=ut();t!==i;)e.push(t),t=ut();return e}function ut(){var t;return(t=function(){var e,t;e=je,(t=ct())!==i&&(Ve=e,t=a(t));return e=t,e}())===i&&(t=function(){var t,r,n,o;$e++,t=je,123===e.charCodeAt(je)?(r=h,je++):(r=i,0===$e&&ot(p));r!==i&&St()!==i&&(n=Et())!==i&&St()!==i?(125===e.charCodeAt(je)?(o=g,je++):(o=i,0===$e&&ot(m)),o!==i?(Ve=t,t=r=f(n)):(je=t,t=i)):(je=t,t=i);$e--,t===i&&(r=i,0===$e&&ot(d));return t}())===i&&(t=function(){var t;t=function(){var t,r,n,o,s,a,l,u,c;t=je,123===e.charCodeAt(je)?(r=h,je++):(r=i,0===$e&&ot(p));r!==i&&St()!==i&&(n=Et())!==i&&St()!==i?(44===e.charCodeAt(je)?(o=R,je++):(o=i,0===$e&&ot(N)),o!==i&&St()!==i?(e.substr(je,6)===k?(s=k,je+=6):(s=i,0===$e&&ot(D)),s!==i&&St()!==i?(a=je,44===e.charCodeAt(je)?(l=R,je++):(l=i,0===$e&&ot(N)),l!==i&&(u=St())!==i?(c=function(){var t,r,n;t=je,e.substr(je,2)===x?(r=x,je+=2):(r=i,0===$e&&ot(A));r!==i?(n=function(){var e,t,r;if(e=je,t=[],r=pt(),r!==i)for(;r!==i;)t.push(r),r=pt();else t=i;t!==i&&(Ve=e,t=O(t));return e=t,e}(),n!==i?(Ve=t,t=r=T(n)):(je=t,t=i)):(je=t,t=i);t===i&&(t=je,Ve=je,(r=(r=L())?void 0:i)!==i&&(n=ct())!==i?(Ve=t,t=r=M(n)):(je=t,t=i));return t}(),c!==i?a=l=[l,u,c]:(je=a,a=i)):(je=a,a=i),a===i&&(a=null),a!==i&&(l=St())!==i?(125===e.charCodeAt(je)?(u=g,je++):(u=i,0===$e&&ot(m)),u!==i?(Ve=t,t=r=Z(n,s,a)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i);return t}(),t===i&&(t=function(){var t,r,n,o,s,a,l,u,c;t=je,123===e.charCodeAt(je)?(r=h,je++):(r=i,0===$e&&ot(p));r!==i&&St()!==i&&(n=Et())!==i&&St()!==i?(44===e.charCodeAt(je)?(o=R,je++):(o=i,0===$e&&ot(N)),o!==i&&St()!==i?(e.substr(je,4)===q?(s=q,je+=4):(s=i,0===$e&&ot(X)),s===i&&(e.substr(je,4)===$?(s=$,je+=4):(s=i,0===$e&&ot(Y))),s!==i&&St()!==i?(a=je,44===e.charCodeAt(je)?(l=R,je++):(l=i,0===$e&&ot(N)),l!==i&&(u=St())!==i?(c=function(){var t,r,n;t=je,e.substr(je,2)===x?(r=x,je+=2):(r=i,0===$e&&ot(A));r!==i?(n=function(){var t,r,n,o;t=je,r=je,n=[],o=gt(),o===i&&(o=mt());if(o!==i)for(;o!==i;)n.push(o),(o=gt())===i&&(o=mt());else n=i;r=n!==i?e.substring(r,je):n;r!==i&&(Ve=t,r=V(r));return t=r,t}(),n!==i?(Ve=t,t=r=T(n)):(je=t,t=i)):(je=t,t=i);t===i&&(t=je,Ve=je,(r=(r=K())?void 0:i)!==i&&(n=ct())!==i?(Ve=t,t=r=M(n)):(je=t,t=i));return t}(),c!==i?a=l=[l,u,c]:(je=a,a=i)):(je=a,a=i),a===i&&(a=null),a!==i&&(l=St())!==i?(125===e.charCodeAt(je)?(u=g,je++):(u=i,0===$e&&ot(m)),u!==i?(Ve=t,t=r=Z(n,s,a)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i);return t}());return t}())===i&&(t=function(){var t,r,n,o,s,a,l,u,c,d,f;t=je,123===e.charCodeAt(je)?(r=h,je++):(r=i,0===$e&&ot(p));if(r!==i)if(St()!==i)if((n=Et())!==i)if(St()!==i)if(44===e.charCodeAt(je)?(o=R,je++):(o=i,0===$e&&ot(N)),o!==i)if(St()!==i)if(e.substr(je,6)===Q?(s=Q,je+=6):(s=i,0===$e&&ot(J)),s===i&&(e.substr(je,13)===ee?(s=ee,je+=13):(s=i,0===$e&&ot(te))),s!==i)if(St()!==i)if(44===e.charCodeAt(je)?(a=R,je++):(a=i,0===$e&&ot(N)),a!==i)if(St()!==i)if(l=je,e.substr(je,7)===re?(u=re,je+=7):(u=i,0===$e&&ot(ie)),u!==i&&(c=St())!==i&&(d=Pt())!==i?l=u=[u,c,d]:(je=l,l=i),l===i&&(l=null),l!==i)if((u=St())!==i){if(c=[],(d=yt())!==i)for(;d!==i;)c.push(d),d=yt();else c=i;c!==i&&(d=St())!==i?(125===e.charCodeAt(je)?(f=g,je++):(f=i,0===$e&&ot(m)),f!==i?(Ve=t,t=r=ne(n,s,l,c)):(je=t,t=i)):(je=t,t=i)}else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;return t}())===i&&(t=function(){var t,r,n,o,s,a,l,u,c;t=je,123===e.charCodeAt(je)?(r=h,je++):(r=i,0===$e&&ot(p));if(r!==i)if(St()!==i)if((n=Et())!==i)if(St()!==i)if(44===e.charCodeAt(je)?(o=R,je++):(o=i,0===$e&&ot(N)),o!==i)if(St()!==i)if(e.substr(je,6)===oe?(s=oe,je+=6):(s=i,0===$e&&ot(se)),s!==i)if(St()!==i)if(44===e.charCodeAt(je)?(a=R,je++):(a=i,0===$e&&ot(N)),a!==i)if(St()!==i){if(l=[],(u=ft())!==i)for(;u!==i;)l.push(u),u=ft();else l=i;l!==i&&(u=St())!==i?(125===e.charCodeAt(je)?(c=g,je++):(c=i,0===$e&&ot(m)),c!==i?(Ve=t,t=r=ae(n,l)):(je=t,t=i)):(je=t,t=i)}else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;else je=t,t=i;return t}())===i&&(t=function(){var t,r;t=je,35===e.charCodeAt(je)?(r=l,je++):(r=i,0===$e&&ot(u));r!==i&&(Ve=t,r=c());return t=r,t}()),t}function ct(){var e,t,r;if(e=je,t=[],(r=wt())===i&&(r=_t())===i&&(r=Ct()),r!==i)for(;r!==i;)t.push(r),(r=wt())===i&&(r=_t())===i&&(r=Ct());else t=i;return t!==i&&(Ve=e,t=s(t)),e=t}function dt(){var t,r,n,o,s;if($e++,t=je,r=[],n=je,o=je,$e++,(s=vt())===i&&(v.test(e.charAt(je))?(s=e.charAt(je),je++):(s=i,0===$e&&ot(b))),$e--,s===i?o=void 0:(je=o,o=i),o!==i?(e.length>je?(s=e.charAt(je),je++):(s=i,0===$e&&ot(S)),s!==i?n=o=[o,s]:(je=n,n=i)):(je=n,n=i),n!==i)for(;n!==i;)r.push(n),n=je,o=je,$e++,(s=vt())===i&&(v.test(e.charAt(je))?(s=e.charAt(je),je++):(s=i,0===$e&&ot(b))),$e--,s===i?o=void 0:(je=o,o=i),o!==i?(e.length>je?(s=e.charAt(je),je++):(s=i,0===$e&&ot(S)),s!==i?n=o=[o,s]:(je=n,n=i)):(je=n,n=i);else r=i;return t=r!==i?e.substring(t,je):r,$e--,t===i&&(r=i,0===$e&&ot(y)),t}function ht(){var t,r,n;return $e++,t=je,47===e.charCodeAt(je)?(r=w,je++):(r=i,0===$e&&ot(_)),r!==i&&(n=dt())!==i?(Ve=t,t=r=C(n)):(je=t,t=i),$e--,t===i&&(r=i,0===$e&&ot(P)),t}function pt(){var e,t,r,n;if($e++,e=je,St()!==i)if((t=dt())!==i){for(r=[],n=ht();n!==i;)r.push(n),n=ht();r!==i?(Ve=e,e=I(t,r)):(je=e,e=i)}else je=e,e=i;else je=e,e=i;return $e--,e===i&&(i,0===$e&&ot(E)),e}function gt(){var t,r,n,o;if(t=je,39===e.charCodeAt(je)?(r=H,je++):(r=i,0===$e&&ot(B)),r!==i){if(n=[],(o=wt())===i&&(W.test(e.charAt(je))?(o=e.charAt(je),je++):(o=i,0===$e&&ot(F))),o!==i)for(;o!==i;)n.push(o),(o=wt())===i&&(W.test(e.charAt(je))?(o=e.charAt(je),je++):(o=i,0===$e&&ot(F)));else n=i;n!==i?(39===e.charCodeAt(je)?(o=H,je++):(o=i,0===$e&&ot(B)),o!==i?t=r=[r,n,o]:(je=t,t=i)):(je=t,t=i)}else je=t,t=i;if(t===i)if(t=[],(r=wt())===i&&(G.test(e.charAt(je))?(r=e.charAt(je),je++):(r=i,0===$e&&ot(U))),r!==i)for(;r!==i;)t.push(r),(r=wt())===i&&(G.test(e.charAt(je))?(r=e.charAt(je),je++):(r=i,0===$e&&ot(U)));else t=i;return t}function mt(){var t,r;if(t=[],z.test(e.charAt(je))?(r=e.charAt(je),je++):(r=i,0===$e&&ot(j)),r!==i)for(;r!==i;)t.push(r),z.test(e.charAt(je))?(r=e.charAt(je),je++):(r=i,0===$e&&ot(j));else t=i;return t}function ft(){var t,r,n,o,s;return t=je,St()!==i&&(r=Ot())!==i&&St()!==i?(123===e.charCodeAt(je)?(n=h,je++):(n=i,0===$e&&ot(p)),n!==i?(Ve=je,(ce(r)?void 0:i)!==i&&(o=lt())!==i?(125===e.charCodeAt(je)?(s=g,je++):(s=i,0===$e&&ot(m)),s!==i?(Ve=t,t=de(r,o)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i),t}function yt(){var t,r,n,o,s;return t=je,St()!==i?(r=function(){var t,r,n,o;return t=je,r=je,61===e.charCodeAt(je)?(n=le,je++):(n=i,0===$e&&ot(ue)),n!==i&&(o=Pt())!==i?r=n=[n,o]:(je=r,r=i),(t=r!==i?e.substring(t,je):r)===i&&(t=Ot()),t}(),r!==i&&St()!==i?(123===e.charCodeAt(je)?(n=h,je++):(n=i,0===$e&&ot(p)),n!==i?(Ve=je,(he(r)?void 0:i)!==i&&(o=lt())!==i?(125===e.charCodeAt(je)?(s=g,je++):(s=i,0===$e&&ot(m)),s!==i?(Ve=t,t=pe(r,o)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i)):(je=t,t=i),t}function vt(){var t;return $e++,me.test(e.charAt(je))?(t=e.charAt(je),je++):(t=i,0===$e&&ot(fe)),$e--,t===i&&(i,0===$e&&ot(ge)),t}function bt(){var t;return $e++,ve.test(e.charAt(je))?(t=e.charAt(je),je++):(t=i,0===$e&&ot(be)),$e--,t===i&&(i,0===$e&&ot(ye)),t}function St(){var t,r,n;for($e++,t=je,r=[],n=vt();n!==i;)r.push(n),n=vt();return t=r!==i?e.substring(t,je):r,$e--,t===i&&(r=i,0===$e&&ot(Se)),t}function Pt(){var t,r,n;return $e++,t=je,45===e.charCodeAt(je)?(r=we,je++):(r=i,0===$e&&ot(_e)),r===i&&(r=null),r!==i&&(n=It())!==i?(Ve=t,t=r=Ce(r,n)):(je=t,t=i),$e--,t===i&&(r=i,0===$e&&ot(Pe)),t}function wt(){var t,r;return $e++,t=je,e.substr(je,2)===Ie?(r=Ie,je+=2):(r=i,0===$e&&ot(Oe)),r!==i&&(Ve=t,r=xe()),$e--,(t=r)===i&&(r=i,0===$e&&ot(Ee)),t}function _t(){var t,r,n,o,s,a;if(t=je,39===e.charCodeAt(je)?(r=H,je++):(r=i,0===$e&&ot(B)),r!==i)if(n=function(){var t,r,n,o;t=je,r=je,e.length>je?(n=e.charAt(je),je++):(n=i,0===$e&&ot(S));n!==i?(Ve=je,(o=(o=Re(n))?void 0:i)!==i?r=n=[n,o]:(je=r,r=i)):(je=r,r=i);t=r!==i?e.substring(t,je):r;return t}(),n!==i){for(o=je,s=[],e.substr(je,2)===Ie?(a=Ie,je+=2):(a=i,0===$e&&ot(Oe)),a===i&&(W.test(e.charAt(je))?(a=e.charAt(je),je++):(a=i,0===$e&&ot(F)));a!==i;)s.push(a),e.substr(je,2)===Ie?(a=Ie,je+=2):(a=i,0===$e&&ot(Oe)),a===i&&(W.test(e.charAt(je))?(a=e.charAt(je),je++):(a=i,0===$e&&ot(F)));(o=s!==i?e.substring(o,je):s)!==i?(39===e.charCodeAt(je)?(s=H,je++):(s=i,0===$e&&ot(B)),s===i&&(s=null),s!==i?(Ve=t,t=r=Ae(n,o)):(je=t,t=i)):(je=t,t=i)}else je=t,t=i;else je=t,t=i;return t}function Ct(){var t,r,n,o;return t=je,r=je,e.length>je?(n=e.charAt(je),je++):(n=i,0===$e&&ot(S)),n!==i?(Ve=je,(o=(o=Te(n))?void 0:i)!==i?r=n=[n,o]:(je=r,r=i)):(je=r,r=i),r===i&&(10===e.charCodeAt(je)?(r=Le,je++):(r=i,0===$e&&ot(Me))),t=r!==i?e.substring(t,je):r}function Et(){var t,r;return $e++,t=je,(r=It())===i&&(r=Ot()),t=r!==i?e.substring(t,je):r,$e--,t===i&&(r=i,0===$e&&ot(Ne)),t}function It(){var t,r,n,o,s;if($e++,t=je,48===e.charCodeAt(je)?(r=De,je++):(r=i,0===$e&&ot(Ze)),r!==i&&(Ve=t,r=He()),(t=r)===i){if(t=je,r=je,Be.test(e.charAt(je))?(n=e.charAt(je),je++):(n=i,0===$e&&ot(We)),n!==i){for(o=[],Fe.test(e.charAt(je))?(s=e.charAt(je),je++):(s=i,0===$e&&ot(Ge));s!==i;)o.push(s),Fe.test(e.charAt(je))?(s=e.charAt(je),je++):(s=i,0===$e&&ot(Ge));o!==i?r=n=[n,o]:(je=r,r=i)}else je=r,r=i;r!==i&&(Ve=t,r=Ue(r)),t=r}return $e--,t===i&&(r=i,0===$e&&ot(ke)),t}function Ot(){var t,r,n,o,s;if($e++,t=je,r=[],n=je,o=je,$e++,(s=vt())===i&&(s=bt()),$e--,s===i?o=void 0:(je=o,o=i),o!==i?(e.length>je?(s=e.charAt(je),je++):(s=i,0===$e&&ot(S)),s!==i?n=o=[o,s]:(je=n,n=i)):(je=n,n=i),n!==i)for(;n!==i;)r.push(n),n=je,o=je,$e++,(s=vt())===i&&(s=bt()),$e--,s===i?o=void 0:(je=o,o=i),o!==i?(e.length>je?(s=e.charAt(je),je++):(s=i,0===$e&&ot(S)),s!==i?n=o=[o,s]:(je=n,n=i)):(je=n,n=i);else r=i;return t=r!==i?e.substring(t,je):r,$e--,t===i&&(r=i,0===$e&&ot(ze)),t}var xt=["root"];function At(){return"plural"===xt[xt.length-1]}function Tt(){return t&&t.captureLocation?{location:Qe()}:{}}if((r=o())!==i&&je===e.length)return r;throw r!==i&&je1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Nr,(function(e,r,i){return"."===e?t.maximumFractionDigits=0:"+"===i?t.minimumFractionDigits=i.length:"#"===r[0]?t.maximumFractionDigits=r.length:(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length+("string"==typeof i?i.length:0)),""})),n.options.length&&(t=Lr(Lr({},t),Dr(n.options[0])))}else if(kr.test(n.stem))t=Lr(Lr({},t),Dr(n.stem));else{var o=Zr(n.stem);o&&(t=Lr(Lr({},t),o))}}return t}var Wr,Fr=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),Gr=function(){for(var e=0,t=0,r=arguments.length;t(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,Xr=Date.now()+"@@",$r=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Yr(e,t,r){var i=e.tagName,n=e.outerHTML,o=e.textContent,s=e.childNodes;if(!i)return Kr(o||"",t);i=i.toLowerCase();var a=~$r.indexOf(i),l=r[i];if(l&&a)throw new Ur(i+" is a self-closing tag and can not be used, please use another tag name.");if(!s.length)return[n];var u=Array.prototype.slice.call(s).reduce((function(e,i){return e.concat(Yr(i,t,r))}),[]);return l?"function"==typeof l?[l.apply(void 0,u)]:[l]:Gr(["<"+i+">"],u,[""])}function Qr(e,t,r,i,n,o){var s=zr(e,t,r,i,n,void 0,o),a={},l=s.reduce((function(e,t){if(0===t.type)return e+t.value;var r=Date.now()+"_"+ ++Vr;return a[r]=t.value,e+"@@"+r+"@@"}),"");if(!qr.test(l))return Kr(l,a);if(!n)throw new Ur("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new Ur("Cannot format XML message without DOMParser");Wr||(Wr=new DOMParser);var u=Wr.parseFromString(''+l+"","text/html").getElementById(Xr);if(!u)throw new Ur("Malformed HTML message "+l);var c=Object.keys(n).filter((function(e){return!!u.getElementsByTagName(e).length}));if(!c.length)return Kr(l,a);var d=c.filter((function(e){return e!==e.toLowerCase()}));if(d.length)throw new Ur("HTML tag must be lowercased but the following tags are not: "+d.join(", "));return Array.prototype.slice.call(u.childNodes).reduce((function(e,t){return e.concat(Yr(t,a,n))}),[])}var Jr=function(){return Jr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r-1?e.replace(/###/g,"."):e}function n(){return!e||"string"==typeof e}const o="string"!=typeof t?[].concat(t):t.split(".");for(;o.length>1;){if(n())return{};const t=i(o.shift());!e[t]&&r&&(e[t]=new r),e=e[t]}return n()?{}:{obj:e,k:i(o.shift())}}const ni=[],oi=ni.forEach,si=ni.slice;class ai{constructor(e){this.type="i18nFormat",this.mem={},this.init(null,e)}init(e,t){const r=e&&e.options&&e.options.i18nFormat||{};if(this.options=function(e){return oi.call(si.call(arguments,1),(function(t){if(t)for(const r in t)void 0===e[r]&&(e[r]=t[r])})),e}(r,t,this.options||{},{memoize:!0,memoizeFallback:!1,bindI18n:"",bindI18nStore:void 0,parseErrorHandler:(e,t,r)=>r}),this.formats=this.options?.formats,e){const{bindI18n:t,bindI18nStore:r,memoize:i}=this.options;e.IntlMessageFormat=ri,e.ICU=this,i&&(t&&e.on(t,(()=>this.clearCache())),r&&e.store.on(r,(()=>this.clearCache())))}this.options?.localeData&&("[object Array]"===Object.prototype.toString.apply(this.options.localeData)?this.options.localeData.forEach((e=>this.addLocaleData(e))):this.addLocaleData(this.options.localeData))}addLocaleData(e){(Array.isArray(e)?e:[e]).forEach((e=>{e&&e.locale&&ri.__addLocaleData(e)}))}addUserDefinedFormats(e){this.formats=this.formats?{...this.formats,...e}:e}parse(e,t,r,i,n,o){const s=o&&o.resolved&&o.resolved.res,a=this.options?.memoize&&`${r}.${i}.${n.replace(/\./g,"###")}`;let l;this.options?.memoize&&(l=function(e,t){const{obj:r,k:i}=ii(e,t);if(r)return r[i]}(this.mem,a));try{return l||(l=new ri(e,r,this.formats),this.options?.memoize&&(this.options.memoizeFallback||!o||s)&&function(e,t,r){const{obj:i,k:n}=ii(e,t,Object);i[n]=r}(this.mem,a,l)),l.format(t)}catch(r){return this.options?.parseErrorHandler?.(r,n,e,t)}}addLookupKeys(e){return e}clearCache(){this.mem={}}}ai.type="i18nFormat";const li=ai;var ui=r(33940),ci=r(64649);function di(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};(0,hi.Z)(this,e),this.init(t,r)}return(0,pi.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||bi,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i-1?e.replace(/###/g,"."):e}function n(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(n())return{};var s=i(o.shift());!e[s]&&r&&(e[s]=new r),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{}}return n()?{}:{obj:e,k:i(o.shift())}}function Ei(e,t,r){var i=Ci(e,t,Object);i.obj[i.k]=r}function Ii(e,t){var r=Ci(e,t),i=r.obj,n=r.k;if(i)return i[n]}function Oi(e,t,r){var i=Ii(e,r);return void 0!==i?i:Ii(t,r)}function xi(e,t,r){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?r&&(e[i]=t[i]):xi(e[i],t[i],r):e[i]=t[i]);return e}function Ai(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ti={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Li(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Ti[e]})):e}var Mi="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Ri=function(e){function t(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,hi.Z)(this,t),r=mi(this,fi(t).call(this)),Mi&&Pi.call((0,gi.Z)(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r}return vi(t,e),(0,pi.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[e,t];return r&&"string"!=typeof r&&(o=o.concat(r)),r&&"string"==typeof r&&(o=o.concat(n?r.split(n):r)),e.indexOf(".")>-1&&(o=e.split(".")),Ii(this.data,o)}},{key:"addResource",value:function(e,t,r,i){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var s=[e,t];r&&(s=s.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(i=t,t=(s=e.split("."))[1]),this.addNamespaces(t),Ei(this.data,s,i),n.silent||this.emit("added",e,t,r,i)}},{key:"addResources",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var n in r)"string"!=typeof r[n]&&"[object Array]"!==Object.prototype.toString.apply(r[n])||this.addResource(e,t,n,r[n],{silent:!0});i.silent||this.emit("added",e,t,r)}},{key:"addResourceBundle",value:function(e,t,r,i,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(i=r,r=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var a=Ii(this.data,s)||{};i?xi(a,r,n):a=di({},a,r),Ei(this.data,s,a),o.silent||this.emit("added",e,t,r)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?di({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(Pi),Ni={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,i,n){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,r,i,n))})),t}},ki={},Di=function(e){function t(e){var r,i,n,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,hi.Z)(this,t),r=mi(this,fi(t).call(this)),Mi&&Pi.call((0,gi.Z)(r)),i=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n=e,o=(0,gi.Z)(r),i.forEach((function(e){n[e]&&(o[e]=n[e])})),r.options=s,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=Si.create("translator"),r}return vi(t,e),(0,pi.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},r=this.resolve(e,t);return r&&void 0!==r.res}},{key:"extractFromKey",value:function(e,t){var r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS;if(r&&e.indexOf(r)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:n};var s=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(s[0])>-1)&&(n=s.shift()),e=s.join(i)}return"string"==typeof n&&(n=[n]),{key:e,namespaces:n}}},{key:"translate",value:function(e,r,i){var n=this;if("object"!==(0,ui.Z)(r)&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),r||(r={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],r),a=s.key,l=s.namespaces,u=l[l.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(d){var h=r.nsSeparator||this.options.nsSeparator;return u+h+a}return a}var p=this.resolve(e,r),g=p&&p.res,m=p&&p.usedKey||a,f=p&&p.exactUsedKey||a,y=Object.prototype.toString.apply(g),v=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&g&&("string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(y)<0&&("string"!=typeof v||"[object Array]"!==y)){if(!r.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,r):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(o){var S="[object Array]"===y,P=S?[]:{},w=S?f:m;for(var _ in g)if(Object.prototype.hasOwnProperty.call(g,_)){var C="".concat(w).concat(o).concat(_);P[_]=this.translate(C,di({},r,{joinArrays:!1,ns:l})),P[_]===C&&(P[_]=g[_])}g=P}}else if(b&&"string"==typeof v&&"[object Array]"===y)(g=g.join(v))&&(g=this.extendTranslation(g,e,r,i));else{var E=!1,I=!1,O=void 0!==r.count&&"string"!=typeof r.count,x=t.hasDefaultValue(r),A=O?this.pluralResolver.getSuffix(c,r.count):"",T=r["defaultValue".concat(A)]||r.defaultValue;!this.isValidLookup(g)&&x&&(E=!0,g=T),this.isValidLookup(g)||(I=!0,g=a);var L=x&&T!==g&&this.options.updateMissing;if(I||E||L){if(this.logger.log(L?"updateKey":"missingKey",c,u,a,L?T:g),o){var M=this.resolve(a,di({},r,{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],N=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&N&&N[0])for(var k=0;k1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!s.isValidLookup(t)){var l=s.extractFromKey(e,a),u=l.key;r=u;var c=l.namespaces;s.options.fallbackNS&&(c=c.concat(s.options.fallbackNS));var d=void 0!==a.count&&"string"!=typeof a.count,h=void 0!==a.context&&"string"==typeof a.context&&""!==a.context,p=a.lngs?a.lngs:s.languageUtils.toResolveHierarchy(a.lng||s.language,a.fallbackLng);c.forEach((function(e){s.isValidLookup(t)||(o=e,!ki["".concat(p[0],"-").concat(e)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(o)&&(ki["".concat(p[0],"-").concat(e)]=!0,s.logger.warn('key "'.concat(r,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(r){if(!s.isValidLookup(t)){n=r;var o,l,c=u,p=[c];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(p,u,r,e,a);else d&&(o=s.pluralResolver.getSuffix(r,a.count)),d&&h&&p.push(c+o),h&&p.push(c+="".concat(s.options.contextSeparator).concat(a.context)),d&&p.push(c+=o);for(;l=p.pop();)s.isValidLookup(t)||(i=l,t=s.getResource(r,e,l,a))}})))}))}})),{res:t,usedKey:r,exactUsedKey:i,usedLng:n,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,i):this.resourceStore.getResource(e,t,r,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}]),t}(Pi);function Zi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Hi=function(){function e(t){(0,hi.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Si.create("languageUtils")}return(0,pi.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map((function(e){return e.toLowerCase()})):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zi(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Zi(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Zi(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,r=this;return e?(e.forEach((function(e){if(!t){var i=r.formatLanguageCode(e);r.options.supportedLngs&&!r.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=r.getLanguagePartFromCode(e);if(r.isSupportedCode(i))return t=i;t=r.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,t){var r=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=function(e){e&&(r.isSupportedCode(e)?n.push(e):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){n.indexOf(e)<0&&o(r.formatLanguageCode(e))})),n}}]),e}(),Bi=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Wi={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};var Fi=function(){function e(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,hi.Z)(this,e),this.languageUtils=t,this.options=i,this.logger=Si.create("pluralResolver"),this.rules=(r={},Bi.forEach((function(e){e.lngs.forEach((function(t){r[t]={numbers:e.nr,plurals:Wi[e.fc]}}))})),r)}return(0,pi.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,r=this.getRule(e);return r?r.numbers.map((function(r){return t.getSuffix(e,r)})):[]}},{key:"getSuffix",value:function(e,t){var r=this,i=this.getRule(e);if(i){var n=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[n];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var s=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):s():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?s():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Gi=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,hi.Z)(this,e),this.logger=Si.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,pi.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Li,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Ai(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Ai(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Ai(t.nestingPrefix):t.nestingPrefixEscaped||Ai("$t("),this.nestingSuffix=t.nestingSuffix?Ai(t.nestingSuffix):t.nestingSuffixEscaped||Ai(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,t,r,i){var n,o,s,a=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(a.formatSeparator)<0){var n=Oi(t,l,e);return a.alwaysFormat?a.format(n,void 0,r):n}var o=e.split(a.formatSeparator),s=o.shift().trim(),u=o.join(a.formatSeparator).trim();return a.format(Oi(t,l,s),u,r,i)};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?u(a.escape(e)):u(e)}}].forEach((function(t){for(s=0;n=t.regex.exec(e);){if(void 0===(o=c(n[1].trim())))if("function"==typeof d){var r=d(e,n,i);o="string"==typeof r?r:""}else{if(h){o=n[0];continue}a.logger.warn("missed to pass in variable ".concat(n[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||a.useRawValueToEscape||(o=_i(o));if(e=e.replace(n[0],t.safeValue(o)),t.regex.lastIndex=0,++s>=a.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var r,i,n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=di({},o);function a(e,t){var r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;var i=e.split(new RegExp("".concat(r,"[ ]*{"))),n="{".concat(i[1]);e=i[0],n=(n=this.interpolate(n,s)).replace(/'/g,'"');try{s=JSON.parse(n),t&&(s=di({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(r).concat(n)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;r=this.nestingRegexp.exec(e);){var l=[],u=!1;if(r[0].includes(this.formatSeparator)&&!/{.*}/.test(r[1])){var c=r[1].split(this.formatSeparator).map((function(e){return e.trim()}));r[1]=c.shift(),l=c,u=!0}if((i=t(a.call(this,r[1].trim(),s),s))&&r[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=_i(i)),i||(this.logger.warn("missed to resolve ".concat(r[1]," for nesting ").concat(e)),i=""),u&&(i=l.reduce((function(e,t){return n.format(e,t,o.lng,o)}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}]),e}();var Ui=function(e){function t(e,r,i){var n,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,hi.Z)(this,t),n=mi(this,fi(t).call(this)),Mi&&Pi.call((0,gi.Z)(n)),n.backend=e,n.store=r,n.services=i,n.languageUtils=i.languageUtils,n.options=o,n.logger=Si.create("backendConnector"),n.state={},n.queue=[],n.backend&&n.backend.init&&n.backend.init(i,o.backend,o),n}return vi(t,e),(0,pi.Z)(t,[{key:"queueLoad",value:function(e,t,r,i){var n=this,o=[],s=[],a=[],l=[];return e.forEach((function(e){var i=!0;t.forEach((function(t){var a="".concat(e,"|").concat(t);!r.reload&&n.store.hasResourceBundle(e,t)?n.state[a]=2:n.state[a]<0||(1===n.state[a]?s.indexOf(a)<0&&s.push(a):(n.state[a]=1,i=!1,s.indexOf(a)<0&&s.push(a),o.indexOf(a)<0&&o.push(a),l.indexOf(t)<0&&l.push(t)))})),i||a.push(e)})),(o.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:o,pending:s,toLoadLanguages:a,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,r){var i=e.split("|"),n=i[0],o=i[1];t&&this.emit("failedLoading",n,o,t),r&&this.store.addResourceBundle(n,o,r),this.state[e]=t?-1:2;var s={};this.queue.forEach((function(r){var i,a,l,u,c,d;i=r.loaded,a=o,u=Ci(i,[n],Object),c=u.obj,d=u.k,c[d]=c[d]||[],l&&(c[d]=c[d].concat(a)),l||c[d].push(a),function(e,t){for(var r=e.indexOf(t);-1!==r;)e.splice(r,1),r=e.indexOf(t)}(r.pending,e),t&&r.errors.push(t),0!==r.pending.length||r.done||(Object.keys(r.loaded).forEach((function(e){s[e]||(s[e]=[]),r.loaded[e].length&&r.loaded[e].forEach((function(t){s[e].indexOf(t)<0&&s[e].push(t)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,r){var i=this,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[r](e,t,(function(a,l){a&&l&&n<5?setTimeout((function(){i.read.call(i,e,t,r,n+1,2*o,s)}),o):s(a,l)})):s(null,{})}},{key:"prepareLoading",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((function(e){r.loadOne(e)}))}},{key:"load",value:function(e,t,r){this.prepareLoading(e,t,{},r)}},{key:"reload",value:function(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}},{key:"loadOne",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),n=i[0],o=i[1];this.read(n,o,"read",void 0,void 0,(function(i,s){i&&t.logger.warn("".concat(r,"loading namespace ").concat(o," for language ").concat(n," failed"),i),!i&&s&&t.logger.log("".concat(r,"loaded namespace ").concat(o," for language ").concat(n),s),t.loaded(e,i,s)}))}},{key:"saveMissing",value:function(e,t,r,i,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=r&&""!==r&&(this.backend&&this.backend.create&&this.backend.create(e,t,r,i,null,di({},o,{isUpdate:n})),e&&e[0]&&this.store.addResource(e[0],t,r,i))}}]),t}(Pi);function zi(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ji(){}var Vi=function(e){function t(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((0,hi.Z)(this,t),e=mi(this,fi(t).call(this)),Mi&&Pi.call((0,gi.Z)(e)),e.options=zi(r),e.services={},e.logger=Si,e.modules={external:[]},i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),mi(e,(0,gi.Z)(e));setTimeout((function(){e.init(r,i)}),0)}return e}return vi(t,e),(0,pi.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(r=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=di({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,ui.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,ui.Z)(e[2])||"object"===(0,ui.Z)(e[3])){var r=e[3]||e[2];Object.keys(r).forEach((function(e){t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,zi(t)),this.format=this.options.interpolation.format,r||(r=ji),!this.options.isClone){this.modules.logger?Si.init(i(this.modules.logger),this.options):Si.init(null,this.options);var n=new Hi(this.options);this.store=new Ri(this.options.resources,this.options);var o=this.services;o.logger=Si,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Fi(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new Gi(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new Ui(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var r;return(r=e.store)[t].apply(r,arguments),e}}));var a=wi(),l=function(){var t=function(t,i){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),a.resolve(i),r(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}},{key:"loadResources",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ji,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var n=[],o=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){n.indexOf(e)<0&&n.push(e)}))};if(i)o(i);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)}));this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(n,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,r){var i=wi();return e||(e=this.languages),t||(t=this.options.ns),r||(r=ji),this.services.backendConnector.reload(e,t,(function(e){i.resolve(),r(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Ni.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var r=this;this.isLanguageChangingTo=e;var i=wi();this.emit("languageChanging",e);var n=function(e){var n="string"==typeof e?e:r.services.languageUtils.getBestMatchFromCodes(e);n&&(r.language||(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n)),r.translator.language||r.translator.changeLanguage(n),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(n)),r.loadResources(n,(function(e){!function(e,n){n?(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n),r.translator.changeLanguage(n),r.isLanguageChangingTo=void 0,r.emit("languageChanged",n),r.logger.log("languageChanged",n)):r.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))}(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t){var r=this,i=function e(t,i){var n;if("object"!==(0,ui.Z)(i)){for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var s=function(e,r){var i=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===i||2===i};if(r.precheck){var a=r.precheck(this,s);if(void 0!==a)return a}return!!this.hasResourceBundle(i,e)||(!this.services.backendConnector.backend||!(!s(i,e)||n&&!s(o,e)))}},{key:"loadNamespaces",value:function(e,t){var r=this,i=wi();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){r.options.ns.indexOf(e)<0&&r.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),t&&t(e)})),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var r=wi();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],n=e.filter((function(e){return i.indexOf(e)<0}));return n.length?(this.options.preload=i.concat(n),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ji,n=di({},this.options,r,{isClone:!0}),o=new t(n);return["store","services","language"].forEach((function(t){o[t]=e[t]})),o.services=di({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Di(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{try{return i(null,await t(e))}catch(e){return i(e,null)}}}),r&&(l.resources={[e]:{translation:r}}),o||u.init(l),u}(t,{icu:new li({parseErrorHandler:r,bindI18n:t.bindI18n,...e})})}const Xi={formats:{date:{monthAndYearUtc:{month:"long",year:"numeric"},date:{month:"short",day:"numeric"},fullDate:{year:"numeric",month:"short",day:"numeric"}},time:{hoursAndMinutes:{hour:"numeric",minute:"2-digit"}}}},$i=(e,t)=>((e,t,r)=>{const i=r({locale:e,messages:t,icuOptions:Xi});return i.init(),i})(e,t,qi),Yi=()=>"undefined"!=typeof window&&window.top!==window.self,Qi=e=>e.translations||{};var Ji=r(99086);const en=()=>((0,n.useEffect)((()=>{Ji.f.preload()}),[]),o().createElement(o().Fragment,null));var tn=r(31853),rn=r(44297),nn=r(56814),on=r(37577),sn=r(81023),an=r(21508);var ln=["isRTL","cubeType","cubeImages","arrowsSize","arrowsPosition","cubeRatio","cropRatio","layoutParams_cropRatio","collageAmount","collageDensity","columnsWidth","cropOnlyFill","chooseBestGroup","externalInfoHeight","externalInfoWidth","fixedColumns","groupsPerStrip","galleryMargin","layoutParams_gallerySpacing","groupTypes","groupSize","isVertical","imageMargin","minItemSize","scrollDirection","placeGroupsLtr","rotatingGroupTypes","layoutParams_repeatingGroupTypes","rotatingCropRatios","smartCrop","scatter","smartCrop","targetItemSize","hasThumbnails","thumbnailSize","thumbnailSpacings","galleryThumbnailsAlignment","isSlideshow","galleryLayout","slideshowInfoSize","layoutParams_structure_galleryRatio_value","gallerySizeType","gallerySizePx","gallerySize","enableInfiniteScroll","imageInfoType","textsHorizontalPadding","gridStyle","numberOfImagesPerRow","calculateTextBoxHeightMode","textBoxHeight","textsVerticalPadding","titlePlacement","textBoxWidthPercent","calculateTextBoxWidthMode"],un=function(e,t){return Object.keys(e).filter((function(e){return t.indexOf(e)>=0})).reduce((function(t,r){return t[r]=e[r],t}),{})},cn=function(e){void 0===e&&(e="");for(var t=0,r=0;r {\n const computedStyle = window.getComputedStyle(galleryEle);\n const computedStyles = {};\n // search css variables to query\n const cssVariables = [];\n const stylesheets = document.styleSheets;\n for (let i = 0; i < stylesheets.length; i++) {\n try {\n const rules = stylesheets[i].rules || stylesheets[i].cssRules;\n for (let j = 0; j < rules.length; j++) {\n const rule = rules[j];\n const style = rule.style;\n if (style) {\n for (let k = 0; k < style.length; k++) {\n const prop = style[k];\n if (prop.startsWith('--')) {\n if (prop.includes('ProGallery-')) {\n cssVariables.push(prop);\n }\n }\n }\n }\n }\n } catch (e) {\n }\n }\n const cssVariablesMap = cssVariables.map((item) => {\n return {\n name: item,\n value: computedStyle.getPropertyValue(item),\n }\n }).filter((item) => item.value);\n // get computed styles\n for (let i = 0; i < cssVariablesMap.length; i++) {\n computedStyles[cssVariablesMap[i].name] = cssVariablesMap[i].value;\n }\n const options = Object.entries(computedStyles).reduce((res, [key, value]) => {\n const keyNameStart = key.indexOf('ProGallery-') + 'ProGallery-'.length;\n const keyName = key.substring(keyNameStart);\n res[keyName] = JSON.parse(value);\n return res;\n }, {});\n const optionsStr = Object.entries({...".concat(JSON.stringify(t),",...options})\n .map(([key, value]) => ([key, JSON.stringify(value)]))\n .filter(([key, value]) => key.includes('layoutParams_'))\n .map((keyval) => keyval.join(\":\")).join('|');\n return optionsStr;\n }");return"(ele) => {\n const mainFunc = ".concat(r,";\n return mainFunc(ele);\n }")}(i);return{hrefStr:"/_serverless/pro-gallery-native-layout-fixer/layoutCssNative?id=".concat(e.id,"&items=").concat(s,"&container="),getOptions:a}}var l=Object.entries(un(i,ln)).map((function(e){return e.join(":")})).join("|");return{hrefStr:"/_serverless/pro-gallery-css-v4-server/layoutCss?ver=2&id=".concat(e.id,"&items=").concat(s,"&container="),getOptions:"() => ".concat(JSON.stringify(l))}}function hn(e){var t,r,i,n,o,s,a,l,u,c,d,h,p,g,m,f,y,v,b,S,P,w,_,C,E,I,O,x,A,T,L,M,R,N,k,D,Z=e.useNativeLayoutFixer,H=dn(e),B=H.hrefStr,W=H.getOptions,F=e.measureContainerId||"pro-gallery-"+e.id,G=function(t){return"\n ".concat(t,"\n var isVertical = options.includes('layoutParams_structure_scrollDirection:\"VERTICAL\"');\n var layoutFixerUrl = '").concat(B,"' + pgMeasures.top + '_' + pgMeasures.width + '_' + pgMeasures.height + '_' + window.innerHeight + '&options=' + options;\n document.getElementById('").concat("layout-fixer-style-"+e.id,"').setAttribute('href', encodeURI(layoutFixerUrl));\n});\n\n ")};return G(Z?'\n var ele = document.getElementById("'.concat(e.id,'"), nativeRect = ele.getBoundingClientRect();\n var pgMeasures = {top: nativeRect.top, width: nativeRect.width, height: Number(getComputedStyle(ele).getPropertyValue("height").replace("px", ""))};\n var options = (').concat(W,")(ele);\n "):"\n var ele = document.getElementById('".concat(F,"');\n var pgMeasures = ele.getBoundingClientRect();\n var options = (").concat(W,")(ele);\n var width = pgMeasures.width;\n var height = pgMeasures.height;\n\n var isIOS = /iPad|iPhone|iPod/.test(navigator?.userAgent);\n if(isIOS) {\n width = ").concat((null===(i=null===(r=null===(t=null==e?void 0:e.containerPostProcess)||void 0===t?void 0:t.ios)||void 0===r?void 0:r.width)||void 0===i?void 0:i.percentage)?"width * ".concat(null===(o=null===(n=null==e?void 0:e.containerPostProcess)||void 0===n?void 0:n.ios)||void 0===o?void 0:o.width.percentage):"width",";\n width = ").concat((null===(l=null===(a=null===(s=null==e?void 0:e.containerPostProcess)||void 0===s?void 0:s.ios)||void 0===a?void 0:a.width)||void 0===l?void 0:l.addition)?"width + (".concat(null===(c=null===(u=null==e?void 0:e.containerPostProcess)||void 0===u?void 0:u.ios)||void 0===c?void 0:c.width.addition,")"):"width",";\n height = ").concat((null===(p=null===(h=null===(d=null==e?void 0:e.containerPostProcess)||void 0===d?void 0:d.ios)||void 0===h?void 0:h.height)||void 0===p?void 0:p.percentage)?"height * ".concat(null===(f=null===(m=null===(g=null==e?void 0:e.containerPostProcess)||void 0===g?void 0:g.ios)||void 0===m?void 0:m.height)||void 0===f?void 0:f.percentage):"height",";\n height = ").concat((null===(b=null===(v=null===(y=null==e?void 0:e.containerPostProcess)||void 0===y?void 0:y.ios)||void 0===v?void 0:v.height)||void 0===b?void 0:b.addition)?"height + (".concat(null===(w=null===(P=null===(S=null==e?void 0:e.containerPostProcess)||void 0===S?void 0:S.ios)||void 0===P?void 0:P.height)||void 0===w?void 0:w.addition,")"):"height",";\n } else {\n width = ").concat((null===(C=null===(_=null==e?void 0:e.containerPostProcess)||void 0===_?void 0:_.width)||void 0===C?void 0:C.percentage)?"width * ".concat(null===(E=e.containerPostProcess)||void 0===E?void 0:E.width.percentage):"width",";\n width = ").concat((null===(O=null===(I=null==e?void 0:e.containerPostProcess)||void 0===I?void 0:I.width)||void 0===O?void 0:O.addition)?"width + (".concat(null===(x=e.containerPostProcess)||void 0===x?void 0:x.width.addition,")"):"width",";\n height = ").concat((null===(T=null===(A=null==e?void 0:e.containerPostProcess)||void 0===A?void 0:A.height)||void 0===T?void 0:T.percentage)?"height * ".concat(null===(M=null===(L=null==e?void 0:e.containerPostProcess)||void 0===L?void 0:L.height)||void 0===M?void 0:M.percentage):"height",";\n height = ").concat((null===(N=null===(R=null==e?void 0:e.containerPostProcess)||void 0===R?void 0:R.height)||void 0===N?void 0:N.addition)?"height + (".concat(null===(D=null===(k=null==e?void 0:e.containerPostProcess)||void 0===k?void 0:k.height)||void 0===D?void 0:D.addition,")"):"height",";\n }\n\n pgMeasures = { top: pgMeasures.top, width, height };\n"))}var pn=function(e){var t;try{var r="undefined"!=typeof window?((null===(t=window.document.getElementById("layout-fixer-style-"+e.id))||void 0===t?void 0:t.href)||"").replace(/^.*\/\/[^/]+/,""):"";return o().createElement("div",{id:"layout-fixer-"+e.id+e.isPrerenderMode,key:"layout-fixer-"+e.id+e.isPrerenderMode,style:{display:"none"}},o().createElement("link",{href:r,rel:"stylesheet",id:"layout-fixer-style-"+e.id}),o().createElement("script",{dangerouslySetInnerHTML:{__html:"try {\n window.requestAnimationFrame(function() {\n ".concat(hn(e),"\n } catch (e) {\n console.warn('Cannot set layoutFixer css', e);\n }")}}))}catch(e){return o().createElement("div",{id:"layoutFixerErrors",style:{display:"none"}},e.toString())}};pn.defaultProps={measureContainerId:""},pn.propTypes={isPrerenderMode:B().bool,id:B().string,items:B().array,options:B().object,useNativeLayoutFixer:B().bool,containerPostProcess:B().shape({width:B().shape({percentage:B().number,addition:B().number}),height:B().shape({percentage:B().number,addition:B().number}),ios:B().shape({width:B().shape({percentage:B().number,addition:B().number}),height:B().shape({percentage:B().number,addition:B().number})})}),measureContainerId:B().string};var gn=r(34327),mn=r(54570),fn=r(98178);const yn={PLAY:"play",SOUND:"sound",PLAYBACK_SPEED:"playbackSpeed",LOOP:"loop",SHOW_PLAY_BUTTON:"showPlayButton"},vn=["hover","auto","onClick"],bn=["0.25","0.5","1","1.25","1.50","2"],Sn={[yn.PLAY]:{defaultValue:0,param:"play",appSettingsPath:"style.numbers.postListWidgetPostsPerPage",values:{ON_HOVER:0,AUTOPLAY:1,ON_CLICK:2}},[yn.SOUND]:{defaultValue:!1,param:"sound"},[yn.PLAYBACK_SPEED]:{defaultValue:2,param:"playbackSpeed",values:{"0.25x":0,"0.5x":1,"1x":2,"1.25x":3,"1.5x":4,"2x":5}},[yn.LOOP]:{defaultValue:!0,param:"loop"},[yn.SHOW_PLAY_BUTTON]:{defaultValue:!0,param:"showPlayButton"}},Pn=(e,t)=>`${(e=>e===st.WB?st.WB:e===st.a7?st.a7:st.LQ.includes(e)?"feed-page":"unknown")(e)}-video-${Sn[t].param}`,wn=(e,t)=>"number"==typeof Sn[t].defaultValue?`style.numbers.${Pn(e,t)}`:`style.booleans.${Pn(e,t)}`,{PLAY:_n,PLAYBACK_SPEED:Cn,SOUND:En,LOOP:In,SHOW_PLAY_BUTTON:On}=yn,xn=(0,fn.P1)([(e,t)=>{const r=(0,ae.get)(e.appSettings,wn(t,_n),Sn[_n].defaultValue);return vn[r]},(e,t)=>{const r=(0,ae.get)(e.appSettings,wn(t,Cn),Sn[Cn].defaultValue);return bn[r]},(e,t)=>(0,ae.get)(e.appSettings,wn(t,En),Sn[En].defaultValue),(e,t)=>(0,ae.get)(e.appSettings,wn(t,In),Sn[In].defaultValue),(e,t)=>(0,ae.get)(e.appSettings,wn(t,On),Sn[On].defaultValue)],((e,t,r,i,n)=>({play:e,playbackSpeed:t,sound:r,loop:i,showPlayButton:n})));var An=r(96221);const Tn="ITEM_CLICKED",Ln="item-media",Mn="NEVER_SHOW",Rn="NO_CHANGE",Nn="px",kn="FADE_IN",Dn="NO_EFFECT",Zn="BLUR",Hn="fill",Bn="min",Wn="max",Fn="SHOW_ON_HOVER",Gn="SHOW_BELOW",Un="SHOW_ON_THE_RIGHT",zn="SHOW_ON_THE_LEFT",jn="MANUAL",Vn="MANUAL",Kn="PERCENT";var qn=r(92113);function Xn(e){return t=>(0,ct.$j)((e=>t=>(0,ae.mapValues)(e,(e=>(0,qn.X)(t,e))))(e))(t)}var $n=r(45796),Yn=r(97097),Qn=r(75708);var Jn=r(91267);var eo=r(76173),to=r(17330),ro=r(37001);const io=(0,ct.$j)(((e,t)=>{let{layoutType:r,section:i}=t;return{borderWidth:(0,rn.Vp)(r)?0:(0,ae.get)((0,$n.hO)(e),(0,eo.H3)(r,i),1)}})),no=(0,ae.flowRight)((0,ro.Z)(),io,(0,to.Z)("WithCardBorderWidth"));var oo=r(10660);const so=(0,ae.flowRight)(no,oo.Z,(0,ct.$j)(((e,t)=>{let{borderWidth:r,applyFeedDesign:i}=t;const n=(0,Yn.I)(e)||st.gN,o=(0,rn.jP)((0,ur.uE)(e,n,(0,ut.W7)(e))),s=(0,lr.QX)(e),a=(0,rn.Sp)(o)?0:(0,$n.vy)(e,s?"post-"+n+"-mobile-borderWidth":"post-"+n+"-borderWidth");return{borderWidth:i?a:r}})),(0,to.Z)("WithFeedBorderWidth"));var ao=r(7027),lo=r(50870);const uo=e=>{const t=Object.assign(Object.assign({},(0,ae.keyBy)(e,"_id")),(0,ae.keyBy)(e,"id"));return delete t.undefined,delete t.null,t},co=2147483647,ho=36,po=/^xn--/,go=/[^\0-\x7E]/,mo=/[\x2E\u3002\uFF0E\uFF61]/g,fo={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},yo=Math.floor,vo=String.fromCharCode;function bo(e){throw new RangeError(fo[e])}function So(e,t){const r=e.split("@");let i="";r.length>1&&(i=r[0]+"@",e=r[1]);const n=function(e,t){const r=[];let i=e.length;for(;i--;)r[i]=t(e[i]);return r}((e=e.replace(mo,".")).split("."),t).join(".");return i+n}function Po(e){const t=[];let r=0;const i=e.length;for(;r=55296&&n<=56319&&r>1,e+=yo(e/t);e>455;i+=ho)e=yo(e/35);return yo(i+36*e/(e+38))},Co=function(e){const t=[],r=e.length;let i=0,n=128,o=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let r=0;r=128&&bo("not-basic"),t.push(e.charCodeAt(r));for(let l=s>0?s+1:0;l=r&&bo("invalid-input");const s=(a=e.charCodeAt(l++))-48<10?a-22:a-65<26?a-65:a-97<26?a-97:ho;(s>=ho||s>yo((co-i)/t))&&bo("overflow"),i+=s*t;const u=n<=o?1:n>=o+26?26:n-o;if(syo(co/c)&&bo("overflow"),t*=c}const u=t.length+1;o=_o(i-s,u,0==s),yo(i/u)>co-n&&bo("overflow"),n+=yo(i/u),i%=u,t.splice(i++,0,n)}var a;return String.fromCodePoint(...t)},Eo=function(e){const t=[];let r=(e=Po(e)).length,i=128,n=0,o=72;for(const r of e)r<128&&t.push(vo(r));let s=t.length,a=s;for(s&&t.push("-");a=i&&tyo((co-n)/l)&&bo("overflow"),n+=(r-i)*l,i=r;for(const r of e)if(rco&&bo("overflow"),r==i){let e=n;for(let r=ho;;r+=ho){const i=r<=o?1:r>=o+26?26:r-o;if(e=1;if(!(this instanceof xo))return r?arguments.length>=2?new xo(e,t):new xo(e):new xo;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}xo.version="1.19.2";var Ao=xo.prototype,To=Object.prototype.hasOwnProperty;function Lo(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function Mo(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function Ro(e){return"Array"===Mo(e)}function No(e,t){var r,i,n={};if("RegExp"===Mo(t))n=null;else if(Ro(t))for(r=0,i=t.length;r]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))/gi,xo.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\xab\xbb\u201c\u201d\u201e\u2018\u2019]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},xo.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},xo.hostProtocols=["http","https"],xo.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,xo.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},xo.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return xo.domAttributes[t]}},xo.encode=Bo,xo.decode=decodeURIComponent,xo.unicode=function(){xo.encode=Bo,xo.decode=decodeURIComponent},xo.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},xo.encodeQuery=function(e,t){var r=xo.encode(e+"");return void 0===t&&(t=xo.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},xo.decodeQuery=function(e,t){e+="",void 0===t&&(t=xo.escapeQuerySpace);try{return xo.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var Wo,Fo={encode:"encode",decode:"decode"},Go=function(e,t){return function(r){try{return xo[t](r+"").replace(xo.characters[e][t].expression,(function(r){return xo.characters[e][t].map[r]}))}catch(e){return r}}};for(Wo in Fo)xo[Wo+"PathSegment"]=Go("pathname",Fo[Wo]),xo[Wo+"UrnPathSegment"]=Go("urnpath",Fo[Wo]);var Uo=function(e,t,r){return function(i){var n;n=r?function(e){return xo[t](xo[r](e))}:xo[t];for(var o=(i+"").split(e),s=0,a=o.length;s-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=xo.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(xo.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3)?(e=e.substring(r+3),e=xo.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},xo.parseHost=function(e,t){e||(e="");var r,i,n=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===n&&(n=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,n)||null,"/"===t.port&&(t.port=null);else{var o=e.indexOf(":"),s=e.indexOf("/"),a=e.indexOf(":",o+1);-1!==a&&(-1===s||a-1?i:e.length-1);return n>-1&&(-1===i||n0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},Ao.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=xo.build(this._parts),this._deferred_build=!1),this},Ao.clone=function(){return new xo(this)},Ao.valueOf=Ao.toString=function(){return this.build(!1)._string},Ao.protocol=zo("protocol"),Ao.username=zo("username"),Ao.password=zo("password"),Ao.hostname=zo("hostname"),Ao.port=zo("port"),Ao.query=jo("query","?"),Ao.fragment=jo("fragment","#"),Ao.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},Ao.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},Ao.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?xo.decodeUrnPath:xo.decodePath)(r):r}return this._parts.urn?this._parts.path=e?xo.recodeUrnPath(e):"":this._parts.path=e?xo.recodePath(e):"/",this.build(!t),this},Ao.path=Ao.pathname,Ao.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=xo._parts();var i=e instanceof xo,n="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[xo.getDomAttribute(e)]||"",n=!1);if(!i&&n&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=xo.parse(String(e),this._parts);else{if(!i&&!n)throw new TypeError("invalid input");var o=i?e._parts:e;for(r in o)"query"!==r&&To.call(this._parts,r)&&(this._parts[r]=o[r]);o.query&&this.query(o.query,!1)}return this.build(!t),this},Ao.is=function(e){var t=!1,r=!1,i=!1,n=!1,o=!1,s=!this._parts.urn;switch(this._parts.hostname&&(s=!1,n=(i=!(t=(r=xo.ip4_expression.test(this._parts.hostname))||false))&&xo.idn_expression.test(this._parts.hostname),o=i&&xo.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return s;case"absolute":return!s;case"domain":case"name":return i;case"sld":return!1;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return false;case"idn":return n;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return o}return null};var Vo=Ao.protocol,Ko=(Ao.port,Ao.hostname);Ao.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(xo.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return Vo.call(this,e,t)},Ao.scheme=Ao.protocol,Ao.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==xo.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&xo.ensureValidHostname(e,this._parts.protocol)}return Ko.call(this,e,t)},Ao.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var i=xo(e);return this.protocol(i.protocol()).authority(i.authority()).build(!t),this},Ao.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?xo.buildHost(this._parts):"";if("/"!==xo.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},Ao.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?xo.buildAuthority(this._parts):"";if("/"!==xo.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},Ao.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?xo.decodePath(i):i}var n=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,n),s=new RegExp("^"+Lo(o));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=xo.recodePath(e),this._parts.path=this._parts.path.replace(s,e),this.build(!t),this},Ao.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(r+1);return e?xo.decodePathSegment(i):i}var n=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(n=!0);var o=new RegExp(Lo(this.filename())+"$");return e=xo.recodePath(e),this._parts.path=this._parts.path.replace(o,e),n?this.normalizePath(t):this.build(!t),this},Ao.segment=function(e,t,r){var i=this._parts.urn?":":"/",n=this.path(),o="/"===n.substring(0,1),s=n.split(i);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(Ro(t)){s=[];for(var a=0,l=t.length;ar._parts[t]=e._parts[t])),r._parts.path?(".."===r._parts.path.substring(-2)&&(r._parts.path+="/"),"/"!==r.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),r._parts.path=(t?t+"/":"")+r._parts.path,r.normalizePath())):(r._parts.path=e._parts.path,r._parts.query||(r._parts.query=e._parts.query)),r.build()),r)},Ao.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},Ao.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},Ao.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this};const Xo=xo,$o=e=>{const t=new Xo(e),r=t.pathname(),i=t.origin();let n=new Xo(i+r).readable();return"/"!==r||e.endsWith("/")||(n=(0,ae.trimEnd)(n,"/")),n+t.search()+t.hash()},Yo=(e,t)=>$o(((e,t)=>{const r=new Xo(t||"").unicode();if(""===e&&r.hostname()&&(null==t?void 0:t.endsWith(r.hostname())))return t;const i=new Xo(e).unicode(),n=(0,ae.trimEnd)($o(r.pathname()),"/")+i.pathname(),o=(0,ae.chain)([r.query(),i.query()]).compact().join("&").value();return r.pathname(n),r.query(o),r.hash(i.hash()||r.hash()),r.toString()})(e,t)),Qo=e=>{var t;return null!==(t=e.categories)&&void 0!==t?t:[]},Jo=((0,fn.P1)([Qo,(e,t)=>t],((e,t)=>e.slice(0,t))),(0,fn.P1)([Qo],(e=>{return t=e,Object.keys(uo(t));var t})),(0,fn.P1)([Qo],(e=>uo(e)))),es=(e,t)=>Jo(e)[t],ts=(e,t={})=>{var r;return null!==(r=t.mainCategory)&&void 0!==r?r:ns(e,t)},rs=os("label","menuLabel"),is=(os("title","label"),(e,t={},r={})=>{if(t.mainCategory)return t.mainCategory.link;const i=ns(e,t);return i?(({topology:e,to:t,shouldNavigateToFeed:r})=>{const{baseUrl:i,isHomePage:n,sectionUrl:o,postPageSectionUrl:s}=e,a="/"===t?"":t;return Yo(a,r?""===a&&n?i:o:s)})({topology:r,to:`/${lo.vt}/${i.slug}`,shouldNavigateToFeed:!0}):void 0});(0,fn.P1)([Qo,(e,t)=>t],((e,t)=>(0,ae.find)(e,(e=>(0,ae.includes)(e.slugs,t)||(0,ae.includes)(e.slugs,`${t}/`))))),(0,fn.P1)([Qo],(e=>Math.max(-1,...(0,ae.map)(e,(e=>{var t;return null!==(t=e.rank)&&void 0!==t?t:-1}))))),(0,fn.P1)([Qo,(e,t)=>t,(e,t,r)=>r],((e,t,r)=>e.find((e=>{var i;return e.language===r&&(null===(i=e.translations)||void 0===i?void 0:i.find((({url:e})=>{var r;return null===(r=null==e?void 0:e.path)||void 0===r?void 0:r.includes(t)})))}))));function ns(e,t={}){var r;const i=null===(r=t.categoryIds)||void 0===r?void 0:r[0];if(i)return es(e,i)}function os(e,t){return(r,i={})=>{if(i.mainCategory)return i.mainCategory[e];const n=ns(r,i);return n?n[t]:void 0}}const ss=(0,ct.$j)(((e,t)=>{const r=(e=>e.isPostInPreview)(e),i=!r&&((0,ao.Mf)(e)?(0,ao.R7)(e):(0,lr.Uw)(e)),n=!r&&(0,lr.Uu)(e),o=!r&&(0,lr.h7)(e),s=!r&&(0,lr.Qn)(e),a=!r&&(0,lr.fG)(e),l=i&&(0,lr.XU)(e),u=!r&&(0,lr.X2)(e),c=(0,lr.g7)(e),d=(0,lr.mE)(e),h=(0,lr.XJ)(e),p=(0,lr.dS)(e),g=(0,lr.vO)(e),m=(0,lr.Ho)(e),f=(0,lr.fM)(e),y=(0,lr.gJ)(e,t.section),v=d!==nn.UH;return{showComments:i,showRecentPosts:n,showViewCount:a,showCommentCount:l,showLikeCount:u,showAuthorName:c,showAuthorPicture:(0,lr.hO)(e,v),showAuthorBadge:!t.hideAuthorBadge&&(0,lr.gK)(e),authorInfoType:d,showPostUpdatedDate:h,showCategoryLabels:p,showPostTitle:g,showPublishDate:m,showReadingTime:f,showPostDescription:y,showMoreOptionsMenu:(0,lr.I$)(e),showCategoryLabel:ts(e,t.post)&&(0,lr.mH)(e),isMetadataFooterVisible:!r&&(a||l||u),isMetadataHeaderVisible:c||m||f,showRelatedPosts:o,relatedPostsLabelKey:s,showPostRating:(0,qn.X)(e,An.I8)&&(0,lr.tx)(e)}})),as=(0,ae.flowRight)(ss,(0,to.Z)("WithFeedMetadataSettings"));var ls=r(65809),us=r(30808);var cs=r(79790),ds=r(13303),hs=["forwardedRef"];function ps(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function gs(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return function(r){function i(i){var o=i.forwardedRef,s=function(e,t){if(null==e)return{};var r,i,n=(0,us.Z)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(i,hs),a=(0,cs.$)(e,gs(gs({},s),{},{keyPrefix:t.keyPrefix})),l=(0,ls.Z)(a,3),u=l[0],c=l[1],d=l[2],h=gs(gs({},s),{},{t:u,i18n:c,tReady:d});return t.withRef&&o?h.ref=o:!t.withRef&&o&&(h.forwardedRef=o),(0,n.createElement)(r,h)}i.displayName="withI18nextTranslation(".concat((0,ds.Gf)(r),")"),i.WrappedComponent=r;return t.withRef?(0,n.forwardRef)((function(e,t){return(0,n.createElement)(i,Object.assign({},e,{forwardedRef:t}))})):i}}const fs=e=>ms()(e),ys=e=>e.hoveringBehaviour===Mn,vs=(e,t)=>(0,ut.hz)(e)?sn.Z.viewMode.EDIT:(0,ut.JF)(e)?sn.Z.viewMode.PREVIEW:(0,ut.D9)(e)?sn.Z.viewMode.SEO:t?sn.Z.viewMode.SITE:sn.Z.viewMode.PRERENDER,bs=28,Ss=25,Ps=16,ws=24,_s=34,Cs=18,Es=18,Is=15,Os=8,xs=11,As=10,Ts=10,Ls=12,Ms=2,Rs=1,Ns=()=>{},ks={addEventListener:Ns,getAdsOnPage:Ns,isApplicationInstalled:(e,t)=>t(!1),removeEventListener:Ns,currentMember:e=>e(null),requestLogin:Ns,logOutCurrentMember:Ns,closeWindow:Ns,setHeight:Ns,resizeComponent:Ns,getBoundingRectAndOffsets:Ns,WindowOrigin:{},WindowPlacement:{},getCurrentPageId:e=>e("pageId"),getSitePages:()=>[{id:"/"}],getSiteInfo:Ns,navigateToPage:Ns,scrollTo:Ns,getSiteMap:e=>e([]),getPublicAPI:Ns,getSiteTextPresets:Ns,Events:{},PubSub:{publish:Ns,subscribe:Ns,unsubscribe:Ns},openPopup:Ns,Utils:{getUid:()=>"00000000-0000-0000-0000-000000000001",getSiteOwnerId:()=>"00000000-0000-0000-0000-000000000001",getSectionUrl:()=>window.location.protocol+"//"+window.location.host+"/",getInstanceId:()=>"33750584-5cda-44e1-8738-62a9139347b3",getInstanceValue:()=>"00000000-0000-0000-0000-000000000000",getViewMode:()=>"",navigateToSection:Ns},Performance:{applicationLoaded:Ns,applicationLoadingStep:Ns},Theme:{BARE:0},Styles:{getSiteTextPresets:Ns,getSiteColors:Ns,getStyleParams:e=>e({})},Dashboard:{getEditorUrl:Ns},Settings:{setHelpArticle:Ns,triggerSettingsUpdatedEvent:Ns},Metadata:{removeAppMetadata:Ns,setAppMetadata:Ns}},Ds=()=>Yi()&&window.Wix||ks,Zs={get:(e,t)=>Ds()[t]},Hs=new Proxy(Ds(),Zs),Bs=e=>{let{borderWidth:t,createdWithResponsiveEditor:r,hostWidth:i,isMobile:n,layoutMargins:o,layoutPostSize:s,layoutType:a,rootWidth:l,section:u,useLayoutFixerExperimentEnabled:c}=e;if((0,rn.rf)(a)||(0,rn.Ip)(a)||u===st.AP)return s;const d=i||l;return isNaN(d)||""===d?c?n?320:980:1:(0,rn.Bo)(a)?Math.max(1,d-2*o-2*t):r||o<1?d:Math.max(1,d-2*o)},Ws=e=>{var t;return null!=(t=e.topology)?t:{}},Fs=e=>{var t;return null!=(t=Ws(e).baseUrl)?t:""},Gs=e=>{var t;return null!=(t=Ws(e).postPageSectionUrl)?t:""},Us=()=>"undefined"==typeof window,zs=function(e,t){void 0===t&&(t=500);const r=(0,n.useMemo)((()=>e?(0,ae.throttle)(e,t,{leading:!0}):()=>{}),[e,t]);(0,n.useEffect)((()=>{var e;return null==(e=window)||e.addEventListener("scroll",r,{passive:!0}),()=>{var e;null==(e=window)||e.removeEventListener("scroll",r)}}),[r])},js="l7pLjR";const Vs=e=>{const t=o().useRef({page:e,pageStart:e});return(0,n.useEffect)((()=>{e!==t.current.pageStart&&(t.current={page:e,pageStart:e})}),[e]),t},Ks=e=>{let{hasMore:t=!1,pageStart:r=2,threshold:i=250,children:s,loader:a,isLoading:l,loadMore:u}=e;const[c,d]=o().useState(!1),h=Vs(r),{componentId:p,isSite:g,isPreview:m}=(0,ct.v9)(((e,t)=>({isSite:(0,ut.tQ)(e),isPreview:(0,ut.JF)(e),componentId:t.id}))),f=(0,n.useCallback)((()=>{l||c||(d(!0),Promise.resolve(null==u?void 0:u(h.current.page)).then((()=>{d(!1)})),h.current.page++)}),[c,l,h,u]),y=(0,n.useCallback)((e=>{const r="undefined"!=typeof window?window.document.getElementsByClassName(js)[0]||window.document.body:null;if(!t||l||c||Us()||!r)return!1;return e.scrollTop+e.documentHeight+i>=r.scrollHeight+e.y}),[t,l,c,i]),v=(0,n.useCallback)((()=>{if(!t||l||c||Us())return!1;const e=window.document.getElementById(p);if(null==e)return!1;const{height:r,top:n}=e.getBoundingClientRect();return window.innerHeight+i>r+n}),[p,t,c,l,i]),b=(0,n.useCallback)((e=>{(g||m?v():y(e))&&f()}),[f,m,g,v,y]);return(0,n.useEffect)((()=>{!(!g&&!m)&&v()&&f()}),[]),zs(b),o().createElement("div",null,s,t&&(l||c)&&a)};var qs=r(33545);const Xs={HEADER_HEIGHT:_s+Cs,FOOTER_HEIGHT:Es+Is+Os+Rs,TITLE_MARGIN:xs,VERTICAL_PADDING:bs+Ss,CATEGORY_LABEL_MARGIN:Ls,DEFAULT_TITLE_FONT_SIZE:22,DEFAULT_DESCRIPTION_FONT_SIZE:14},$s={[rn.z]:Xs,[rn.wQ]:Xs,[rn.fl]:Xs,[rn.yc]:{HEADER_HEIGHT:_s+Cs,FOOTER_HEIGHT:Es+Is+Rs,TITLE_MARGIN:0,VERTICAL_PADDING:bs+Ss,CATEGORY_LABEL_MARGIN:Ls,DEFAULT_TITLE_FONT_SIZE:22,DEFAULT_DESCRIPTION_FONT_SIZE:14},[rn.rO]:{HEADER_HEIGHT:_s+Cs,FOOTER_HEIGHT:Es+Is+Os+Rs,TITLE_MARGIN:xs,VERTICAL_PADDING:bs+Ss,CATEGORY_LABEL_MARGIN:Ls,DEFAULT_TITLE_FONT_SIZE:26,DEFAULT_DESCRIPTION_FONT_SIZE:16},[rn.I7]:{HEADER_HEIGHT:_s+Cs,FOOTER_HEIGHT:Es+Is+Os+Rs,TITLE_MARGIN:As+Ts,VERTICAL_PADDING:Ps+ws,CATEGORY_LABEL_MARGIN:Ms,DEFAULT_TITLE_FONT_SIZE:22,DEFAULT_DESCRIPTION_FONT_SIZE:12}},Ys=0,Qs=1,Js="style.booleans.category-label-isMobileDesignSettingsEnabled",ea={textFont:{wixParam:"category-label-text-textFont",appSettingsPath:"style.fonts.category-label-text-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-text-textColor",appSettingsPath:"style.colors.category-label-text-textColor",defaultColor:"color-8"},textColorHover:{wixParam:"category-label-text-textColorHover",appSettingsPath:"style.colors.category-label-text-textColorHover",defaultColor:"color-8",defaultOpacity:.7},uppercase:{wixParam:"category-label-text-uppercase",appSettingsPath:"style.booleans.category-label-text-uppercase",defaultValue:!1}},ta={textFont:{wixParam:"category-label-text-mobile-textFont",appSettingsPath:"style.fonts.category-label-text-mobile-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-text-mobile-textColor",appSettingsPath:"style.colors.category-label-text-mobile-textColor",defaultColor:"color-8"},uppercase:{wixParam:"category-label-text-mobile-uppercase",appSettingsPath:"style.booleans.category-label-text-mobile-uppercase",defaultValue:!1}},ra={verticalPadding:{wixParam:"category-label-button-verticalPadding",appSettingsPath:"style.numbers.category-label-button-verticalPadding",defaultPadding:6,minPadding:0,maxPadding:100},horizontalPadding:{wixParam:"category-label-button-horizontalPadding",appSettingsPath:"style.numbers.category-label-button-horizontalPadding",defaultPadding:12,minPadding:0,maxPadding:100},textFont:{wixParam:"category-label-button-textFont",appSettingsPath:"style.fonts.category-label-button-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-button-textColor",appSettingsPath:"style.colors.category-label-button-textColor",defaultColor:"color-1"},uppercase:{wixParam:"category-label-button-uppercase",appSettingsPath:"style.booleans.category-label-button-uppercase",defaultValue:!1},backgroundColor:{wixParam:"category-label-button-backgroundColor",appSettingsPath:"style.colors.category-label-button-backgroundColor",defaultColor:"color-8",defaultOpacity:1},cornerRadius:{wixParam:"category-label-button-cornerRadius",appSettingsPath:"style.numbers.category-label-button-cornerRadius",defaultRadius:0,minRadius:0,maxRadius:100},borderColor:{wixParam:"category-label-button-borderColor",appSettingsPath:"style.colors.category-label-button-borderColor",defaultColor:"color-8",defaultOpacity:1},borderWidth:{wixParam:"category-label-button-borderWidth",appSettingsPath:"style.numbers.category-label-button-borderWidth",defaultWidth:0,minWidth:0,maxWidth:10},textColorHover:{wixParam:"category-label-button-textColorHover",appSettingsPath:"style.colors.category-label-button-textColorHover",defaultColor:"color-1",defaultOpacity:1},backgroundColorHover:{wixParam:"category-label-button-backgroundColorHover",appSettingsPath:"style.colors.category-label-button-backgroundColorHover",defaultColor:"color-8",defaultOpacity:.7},borderColorHover:{wixParam:"category-label-button-borderColorHover",appSettingsPath:"style.colors.category-label-button-borderColorHover",defaultColor:"color-8",defaultOpacity:.7}},ia={verticalPadding:{wixParam:"category-label-button-mobile-verticalPadding",appSettingsPath:"style.numbers.category-label-button-mobile-verticalPadding",defaultPadding:6,minPadding:0,maxPadding:100},horizontalPadding:{wixParam:"category-label-button-mobile-horizontalPadding",appSettingsPath:"style.numbers.category-label-button-mobile-horizontalPadding",defaultPadding:12,minPadding:0,maxPadding:100},textFont:{wixParam:"category-label-button-mobile-textFont",appSettingsPath:"style.fonts.category-label-button-mobile-textFont",defaultSize:14,minSize:10,maxSize:24,defaultTheme:"font_8"},textColor:{wixParam:"category-label-button-mobile-textColor",appSettingsPath:"style.colors.category-label-button-mobile-textColor",defaultColor:"color-1"},uppercase:{wixParam:"category-label-button-mobile-uppercase",appSettingsPath:"style.booleans.category-label-button-mobile-uppercase",defaultValue:!1},backgroundColor:{wixParam:"category-label-button-mobile-backgroundColor",appSettingsPath:"style.colors.category-label-button-mobile-backgroundColor",defaultColor:"color-8",defaultOpacity:1},cornerRadius:{wixParam:"category-label-button-mobile-cornerRadius",appSettingsPath:"style.numbers.category-label-button-mobile-cornerRadius",defaultRadius:0,minRadius:0,maxRadius:100},borderColor:{wixParam:"category-label-button-mobile-borderColor",appSettingsPath:"style.colors.category-label-button-mobile-borderColor",defaultColor:"color-8",defaultOpacity:1},borderWidth:{wixParam:"category-label-button-mobile-borderWidth",appSettingsPath:"style.numbers.category-label-button-mobile-borderWidth",defaultWidth:0,minWidth:0,maxWidth:10}};var na=r(68378);const oa=e=>(0,ut.W7)(e)&&(0,na.JT)(e,Js),sa=e=>(0,$n.$U)({state:e,key:oa(e)?"style.numbers.category-label-mobile-layoutType":"style.numbers.category-label-layoutType",fallback:Ys}),aa=e=>sa(e)===Ys,la=e=>{const t=oa(e),r=sa(e);return{[Ys]:t?ta:ea,[Qs]:t?ia:ra}[r]},ua=(e,t)=>r=>{const i=la(r);return(0,$n.$U)({state:r,key:i[e].appSettingsPath,fallback:i[e][t]})},ca=ua("verticalPadding","defaultPadding"),da=ua("borderWidth","defaultWidth"),ha=ua("uppercase","defaultValue"),pa=(e,t,r)=>e?r*e:r*t,ga=(e,t)=>{if(!(0,lr.mH)(e))return 0;const r=(e=>{const{textFont:t}=la(e);return(0,$n.$U)({state:e,key:t.appSettingsPath})||{size:t.defaultSize}})(e);if(aa(e))return 1.5*r.size+t.CATEGORY_LABEL_MARGIN;return 1.5*r.size+2*da(e)+2*ca(e)+t.CATEGORY_LABEL_MARGIN},ma=(e,t,r)=>{const i=r||(0,ur.uE)(e,t,!1),n=$s[i],o=ga(e,n),s=((e,t)=>{const r=(0,lr.fM)(e),i=(0,lr.Ho)(e);return(0,lr.g7)(e)||i||r?t.HEADER_HEIGHT:0})(e,n),a=((e,t)=>{const r=(0,lr.XU)(e),i=(0,lr.fG)(e),n=(0,lr.X2)(e);return r||i||n?t.FOOTER_HEIGHT:0})(e,n),l=((e,t,r,i)=>{const n=(0,$n.hO)(e),o=(0,lr.m8)({state:e,section:t,layoutType:r})||3,s=(0,ae.get)(n,"style.fonts.post-"+t+"-titleFont",{}),a=(0,ut.W7)(e)?(0,ae.get)(n,"style.numbers."+(0,eo.BS)(r,t,!0)):s.size;return pa(a||s.size,i.DEFAULT_TITLE_FONT_SIZE,1.5)*o+i.TITLE_MARGIN})(e,t,i,n),u=((e,t,r,i)=>{if(!(0,lr.gJ)(e))return 0;const n=(0,$n.hO)(e),o=(0,ae.get)(n,"style.fonts.post-"+t+"-descriptionFont",{}),s=(0,lr.Qq)({state:e,section:t,layoutType:r})||3,a=(0,ut.W7)(e)?(0,ae.get)(n,"style.numbers."+(0,eo.QS)(r,t,!0)):o.size;return pa(a||o.size,i.DEFAULT_DESCRIPTION_FONT_SIZE,1.5)*s})(e,t,i,n),c=Math.ceil(s+a+l+u+o+n.VERTICAL_PADDING);return(0,ut.L1)(e)&&(console.groupCollapsed("blog auto height"),console.log("Constants"),console.table({...n,DEFAULT_TITLE_LINE_HEIGHT:1.5,DEFAULT_DESCRIPTION_LINE_HEIGHT:1.5,DEFAULT_CATEGORY_LABEL_LINE_HEIGHT:1.5}),console.log("Calculated components"),console.table({header:s,footer:a,title:l,description:u,categoryLabelSize:o,verticalPadding:n.VERTICAL_PADDING,total:c}),console.groupEnd()),c};var fa=r(20859),ya=r(56583);const va=(0,ct.$j)((e=>{const t=(0,ut.W7)(e);return{isMobile:t,isDesktop:!t}}));const ba=function(e){return va(e)};var Sa=r(36991);const Pa=(0,ct.$j)((e=>({titleFontClassName:"blog-post-title-font",contentFontClassName:(0,Sa.GB)(e)?"blog-post-page-font":"blog-post-description-font",contentFontClassNameWithStyle:"blog-post-description-style-font"}))),wa=(0,ae.flowRight)(Pa,(0,to.Z)("WithFontClassName")),_a=(0,ae.flowRight)((0,ro.Z)(),(0,ct.$j)(((e,t)=>{let{section:r}=t;const i=(0,ut.W7)(e),n=(0,ur.uE)(e,r,i);return{postTitleFontSize:(0,lr.yv)(e,n,r,"title"),postDescriptionFontSize:(0,lr.yv)(e,n,r,"description"),postMetadataFontSize:(0,lr.yv)(e,n,r,"metadata"),defaultPostTitleFontSize:(0,lr.lH)(e,n,r,"title"),defaultPostDescriptionFontSize:(0,lr.lH)(e,n,r,"description")}})),(0,to.Z)("WithPostFontSize"));var Ca=r(80406),Ea=r(18171);const Ia="posts",Oa=`posts-${Ea.RW.unpublished}`,xa=`posts-${Ea.RW.published}`,Aa=`posts-${Ea.RW.scheduled}`,Ta=`posts-${Ea.RW.deleted}`,La=`posts-${Ea.RW.in_review}`;var Ma=r(28613);const Ra=(e,t)=>t||function(e){throw new Error(e)}("Missing second param in selector");var Na=r(8155);const ka=new RegExp("^"+Na.YEAR_SLASH_MONTH_OPTIONAL_SLASH_DAY+"/$"),Da=e=>{let{year:t,month:r,day:i,postSlug:n}=e;return!!n&&(i?!isNaN(new Date(t+"-"+r+"-"+i).getTime()):ka.test(t+"/"+r+"/"))},Za=(0,Ca.P1)([e=>e.pagination,(e,t)=>t],((e,t)=>(0,ae.get)(e,t,{}))),Ha=(0,Ca.P1)([Za],(e=>e.entitiesByPage)),Ba=((0,Ca.P1)([Za],(e=>e.entityCount)),(0,Ca.P1)([Za],(e=>e.currentPage||1))),Wa=(0,Ca.P1)([Ha,Ba],((e,t)=>(0,ae.get)(e,t))),Fa=((0,Ca.P1)([Ha],(e=>(0,ae.toNumber)((0,ae.last)(Object.keys(e).sort()))||1)),e=>{var t;return null!=(t=e.posts)?t:{}}),Ga=(0,Ca.P1)([Fa,(e,t)=>t],((e,t)=>t?e[t]:void 0)),Ua=(0,Ca.P1)([Fa,(e,t)=>t],((e,t)=>{if("string"!=typeof t)return;const r=t.toLowerCase(),[i,n,o]=(0,ae.trimStart)(r,"/").split("/");return Da({year:i,month:n,postSlug:o})?(0,ae.find)(e,(e=>(0,ae.includes)(e.slugs,r)||(0,ae.includes)(e.slugs,r+"/"))):(0,ae.find)(e,(e=>(0,ae.includes)(e.slugs,r)))})),za=(e,t)=>Ga(e,t)||Ua(e,t),ja=(e,t)=>{var r,i;return null!=(r=null==(i=Ha(e,Ia))?void 0:i[t])?r:[]},Va=(e,t,r)=>ja(e,r),Ka=e=>!!e&&e.status===Ea.RW.published,qa=e=>!!e&&e.status===Ea.RW.unpublished,Xa=(e,t)=>!!t&&(0,ae.includes)(t.categoryIds,e),$a=(0,ae.curry)(((e,t)=>!!t&&(0,ae.includes)(t.tagIds,e))),Ya=(e,t,r)=>i=>{const n=((e,t)=>{const r=new Date(e);if(!t)return{month:r.getMonth()+1,year:r.getFullYear()};const[i,n]=r.toLocaleString("en",{timeZone:t,year:"numeric",month:"numeric"}).split("/");return{month:parseInt(i,10),year:parseInt(n,10)}})(i.firstPublishedDate,r);return n.year===parseInt(e,10)&&n.month===parseInt(t,10)},Qa=((0,Ca.P1)([Fa,(e,t)=>t],((e,t)=>(0,Ma.PB)((0,ae.chain)(e).filter((e=>Xa(t,e))).value()))),(0,Ca.P1)([Fa,Ra,Va],((e,t,r)=>(0,ae.chain)(r).map((t=>e[t])).filter((e=>Xa(t,e))).value())),(0,Ca.P1)([Fa],(e=>(0,Ma.PB)(Object.values(e)))),(0,Ca.P1)([Fa,ja],((e,t)=>t.map((t=>e[t])))),(0,Ca.P1)([Fa,(e,t)=>t,ut.EP],((e,t,r)=>{let{year:i,month:n}=t;return(0,Ma.PB)((0,ae.chain)(e).filter(Ya(i,n,r)).value())})),(0,Ca.P1)([Fa,Ra,Va,ut.EP],((e,t,r,i)=>{let{year:n,month:o}=t;return(0,ae.chain)(r).map((t=>e[t])).filter(Ya(n,o,i)).value()})),(0,Ca.P1)([Fa,(e,t)=>t],((e,t)=>(0,Ma.PB)((0,ae.chain)(e).filter($a(t)).filter(Ka).value()))),(0,Ca.P1)([Fa,(e,t)=>t],((e,t)=>(0,ae.chain)(e).filter((e=>{var r,i;return null!=(r=null==(i=e.hashtags)?void 0:i.some((e=>e.toLowerCase()===t.toLowerCase())))&&r})).value())),(0,Ca.P1)([Fa,Ra,Va],((e,t,r)=>(0,ae.chain)(r).map((t=>e[t])).filter($a(t)).value())),(0,Ca.P1)([Fa],(e=>(0,Ma.vX)(Object.values(e)))),(0,Ca.P1)([Fa],(e=>(0,Ma.yO)(Object.values(e)))),(0,Ca.P1)([Fa],(e=>(0,ae.values)(e)))),Ja=((0,Ca.P1)([Fa],(e=>(0,ae.values)(e))),(0,Ca.P1)([Fa,ja],((e,t)=>t.map((t=>e[t])))),(0,Ca.P1)([Fa],(e=>(0,ae.filter)(e,Ka))),(0,Ca.P1)([Fa],(e=>(0,ae.filter)(e,qa))),(0,Ca.P1)([Fa],(e=>(0,ae.chain)(e).filter(Ka).size().value())),(0,Ca.P1)([Fa],(e=>(0,ae.chain)(e).filter(qa).size().value())),(0,Ca.P1)([Fa,Wa],((e,t)=>(0,ae.chain)(t).map((t=>null==e?void 0:e[t])).compact().value())),e=>{var t;return null==(t=(e=>e.coverImage)(e))?void 0:t.src}),el=(e,t)=>{switch(e){case nn.Cu.Center:return"center";case nn.Cu.Right:return t?"start":"end";case nn.Cu.Left:default:return t?"end":"start"}},tl=(e,t)=>{var r;return null==(r=e.postRatings[t])?void 0:r.averageRating},rl=(e,t)=>{var r;return null==(r=e.postRatings[t])?void 0:r.totalRatings},il={center:"woUe2C",content:"mABNle",headerContainer:"Bt5sQV",metadataContainer:"dXvq5u",avatar:"H_gEjP",postDetails:"htMcyB",options:"bhsfaV",categoryLabel:"JGhsWK",textAlign:"HhgCcE",isRTL:"qikwPI",isRtl:"qikwPI",rating:"UjX6YI",end:"mW_sDH"};var nl=r(45328);const ol=e=>{let{path:t,sectionId:r,children:i,onClick:n,...s}=e;const a=(0,ct.v9)(ut.tQ),l=(0,ct.ol)();return o().createElement("a",kt()({},s,{onClick:e=>{if(!a&&r)return e.preventDefault(),void l.navigateToSectionInPreview(t,r);null==n||n()}}),i)},sl=e=>{let{postLink:t,postPath:r,children:i,...n}=e;return o().createElement(ol,kt()({},n,{href:t,path:r,sectionId:"post"}),i)};var al=r(27628),ll=r(35139),ul=r(18572);const cl=(0,ct.$j)(((e,t,r)=>({showJoinCommunityPopup:r.showJoinCommunityPopup,currentUser:(0,al.ts)(e),isAuthenticated:(0,ll.$)(e),isBlocked:(0,al.IT)(e),isOwner:(0,al.mF)(e),isPrivate:(0,al.hv)(e),__isMemberAreaActive:(0,ul.n)(e),__isSite:(0,ut.tQ)(e)}))),dl=function(e){class t extends n.Component{constructor(){var e;super(...arguments),e=this,qe()(this,"forPublicUser",((e,t)=>this.props.__isMemberAreaActive&&this.props.__isSite?this.decorateWithPrivacyChecker(e,t):e)),qe()(this,"decorateWithPrivacyChecker",(function(t,r){let{preventDefault:i=!1}=void 0===r?{}:r;return function(){for(var r=arguments.length,n=new Array(r),o=0;oe.postLikes[t]||{isLiked:!1,likeCount:0},gl=(e,t)=>(0,ae.get)(pl(e,t),"isLiked",!1),ml=(e,t)=>(0,ae.get)(pl(e,t),"isLikeInProgress",!1),fl=(e,t)=>(0,ae.get)(pl(e,t),"likeCount",0),yl=(e,t)=>(0,ae.get)(pl(e,t),"likeCountFormatted"),vl=e=>{let{t,count:r,countFormatted:i,i18nKey:n,className:s,showZero:a,ariaHidden:l,tabIndex:u}=e;return(r||a)&&o().createElement("span",{"aria-hidden":l,className:s,tabIndex:u},t(n,{count:r,numberFormatted:i}))};vl.defaultProps={count:0,showZero:!0,i18nKey:"counter.count"};const bl=fs(vl),Sl=e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",role:"img"},e),o().createElement("path",{d:"M9.44985848,15.5291774 C9.43911371,15.5362849 9.42782916,15.5449227 9.41715267,15.5553324 L9.44985848,15.5291774 Z M9.44985848,15.5291774 L9.49370677,15.4941118 C9.15422701,15.7147757 10.2318883,15.0314406 10.7297038,14.6971183 C11.5633567,14.1372547 12.3827081,13.5410755 13.1475707,12.9201001 C14.3829188,11.9171478 15.3570936,10.9445466 15.9707237,10.0482572 C16.0768097,9.89330422 16.1713564,9.74160032 16.2509104,9.59910798 C17.0201658,8.17755699 17.2088969,6.78363112 16.7499013,5.65913129 C16.4604017,4.81092573 15.7231445,4.11008901 14.7401472,3.70936139 C13.1379564,3.11266008 11.0475663,3.84092251 9.89976068,5.36430396 L9.50799408,5.8842613 L9.10670536,5.37161711 C7.94954806,3.89335486 6.00516066,3.14638251 4.31830373,3.71958508 C3.36517186,4.00646284 2.65439601,4.72068063 2.23964629,5.77358234 C1.79050315,6.87166888 1.98214559,8.26476279 2.74015555,9.58185512 C2.94777753,9.93163559 3.23221417,10.3090129 3.5869453,10.7089994 C4.17752179,11.3749196 4.94653811,12.0862394 5.85617417,12.8273544 C7.11233096,13.8507929 9.65858244,15.6292133 9.58280954,15.555334 C9.53938013,15.5129899 9.48608859,15.5 9.50042471,15.5 C9.5105974,15.5 9.48275828,15.5074148 9.44985848,15.5291774 Z"})),Pl={isLiked:"AsLaVa",heart:"LtaU1R",heartRing:"_zh4Km",active:"rbBvhf",heartSparkle:"IiFRN3",isAnimationEnabled:"U1kLgW","pop-bounce":"qrbXQX",popBounce:"qrbXQX",explode:"kWXE2n",shoot:"e1MjpB",pos1:"TlM_il",pos2:"h1CBon",pos3:"ab2Jus",pos4:"GKdqLq"};class wl extends n.Component{constructor(e){super(e),qe()(this,"state",{isAnimationEnabled:!1}),this.handleAnimation=this.handleAnimation.bind(this)}handleAnimation(e){if(this.props.isDisabled)return e.stopPropagation(),void e.preventDefault();this.props.isLiked||this.setState({isAnimationEnabled:!0})}render(){const{isLiked:e}=this.props,{isAnimationEnabled:t}=this.state;return o().createElement("span",{onClick:this.handleAnimation,className:it()("like-button",Pl.heart,{[Pl.active]:e},{[Pl.isAnimationEnabled]:t}),"data-hook":"like-button"},o().createElement("span",{className:it()(Pl.pos1)},o().createElement("span",{className:it()(Pl.heartSparkle)})),o().createElement("span",{className:it()(Pl.pos2)},o().createElement("span",{className:it()(Pl.heartSparkle)})),o().createElement("span",{className:it()(Pl.pos3)},o().createElement("span",{className:it()(Pl.heartSparkle)})),o().createElement("span",{className:it()(Pl.pos4)},o().createElement("span",{className:it()(Pl.heartSparkle)})),o().createElement("span",{className:it()(Pl.heartRing)}),o().createElement(Sl,{className:Pl.heartBody}))}}const _l=wl,Cl="Kh5HMz",El="h7K_lu",Il="FYRNvd",Ol="p9gct4",xl="laz8E8",Al=e=>{let{t,className:r,onClick:i,showZero:n,switchCounterAndButton:s,likeCount:a,likeCountFormatted:l,isLiked:u,isLikeInProgress:c}=e;const d=(e=>{let{t,isLiked:r,likeCount:i,isComment:n}=e;const o=(e=>{let{t,likeCount:r}=e;return r?r+" "+t(r>1?"like-button.total-likes_plural":"like-button.total-likes"):null})({t,likeCount:i}),s=(e=>{let{t,isComment:r,isLiked:i}=e;return t(i?r?"like-button.comment-is-liked":"like-button.is-liked":r?"like-button.comment-is-unliked":"like-button.is-unliked")})({t,isComment:n,isLiked:r});return o?o+" "+s:s})({t,likeCount:a,isLiked:u}),h=c?"polite":"off";return o().createElement("button",{className:it()(Cl,r),onClick:i},o().createElement("span",{"aria-live":h,className:xl},d),o().createElement("span",{className:it()(El,s&&Ol),"data-hook":"like-button-with-count__like-count"},o().createElement(bl,{className:it()(Il,"like-button-with-count__like-count"),count:a,countFormatted:l,showZero:n,ariaHidden:!0}),o().createElement(_l,{isLiked:u,isDisabled:c})))};Al.defaultProps={showZero:!1,switchCounterAndButton:!1};const Tl=(0,ae.flowRight)((0,ct.$j)(((e,t)=>{let{entity:r}=t;return{likeCount:fl(e,(0,gn.F)(r)),likeCountFormatted:yl(e,(0,gn.F)(r)),isLikeInProgress:ml(e,(0,gn.F)(r)),isLiked:gl(e,(0,gn.F)(r))}})),fs)(Al),Ll=e=>o().createElement(bl,kt()({i18nKey:"comment-count.label"},e)),Ml="t66ylj",Rl="eYQJQu",Nl=e=>{let{children:t,dataHook:r,tabIndex:i,...n}=e;return o().createElement("span",{className:it()(Ml,n.className),"data-hook":r,tabIndex:i},t,o().createElement(bl,kt()({},n,{className:Rl})))},kl=e=>{let{title:t,...r}=e;return o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",role:"img"},r),o().createElement("title",null,t),o().createElement("path",{d:"M9.5,13 L15,13 C15.5522847,13 16,12.5522847 16,12 L16,12 L16,5 C16,4.44771525 15.5522847,4 15,4 L15,4 L4,4 L4,4 C3.44771525,4 3,4.44771525 3,5 L3,12 C3,12.5522847 3.44771525,13 4,13 L7,13 L7,15.5 L9.5,13 Z M15.0081158,13.973325 L10,13.973325 L7.42191625,16.5445317 C6.63661359,17.3277395 6,17.0667904 6,15.9700713 L6,13.973325 L3.99188419,13.973325 C2.89179693,13.973325 2,13.0706688 2,11.979044 L2,4.994281 C2,3.89287002 2.89339733,3 3.99188419,3 L15.0081158,3 C16.1082031,3 17,3.90265618 17,4.994281 L17,11.979044 C17,13.0804549 16.1066027,13.973325 15.0081158,13.973325 Z"}))},Dl=e=>{let{t,iconColorClassName:r,...i}=e;return o().createElement(Nl,kt()({},i,{dataHook:"comment-count-compact",ariaHidden:!0}),o().createElement(kl,{"aria-label":t("comment-count.label",{count:i.count,numberFormatted:i.countFormatted}),className:it()(r,"blog-link-hover-fill")}))};Dl.defaultProps={showZero:!1};const Zl=(0,ae.flowRight)(fs,hl.Z)(Dl),Hl=(e,t)=>e.postCounters[t],Bl=(e,t)=>(0,ae.get)(Hl(e,t),"viewCount",0),Wl=(e,t)=>(0,ae.get)(Hl(e,t),"viewCountFormatted"),Fl=(e,t)=>(0,ae.get)(Hl(e,t),"totalComments",0),Gl=(e,t)=>(0,ae.get)(Hl(e,t),"totalCommentsFormatted"),Ul=e=>o().createElement(bl,kt()({},e,{i18nKey:"view-count.label"})),zl=e=>{let{title:t,...r}=e;return o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",role:"img"},r),o().createElement("title",null,t),o().createElement("path",{d:"M18.6514224,10.4604595 C17.3924224,11.9688254 13.9774224,15.4790227 9.46342244,15.5 L9.42442244,15.5 C6.26242244,15.5 3.20842244,13.7938483 0.345422443,10.4264963 C-0.115140814,9.88163847 -0.115140814,9.08439833 0.345422443,8.5395405 C1.60442244,7.03117456 5.01942244,3.52097727 9.53342244,3.5 L9.57342244,3.5 C12.7354224,3.5 15.7894224,5.20615167 18.6524224,8.5735037 C19.1122856,9.11875503 19.1118633,9.91569484 18.6514224,10.4604595 Z M17.8674224,9.2228003 C15.2084224,6.09518855 12.4194224,4.50990594 9.57442244,4.50990594 L9.54042244,4.50990594 C5.46142244,4.52888537 2.30642244,7.78335969 1.14042244,9.18084575 C0.991393136,9.3517953 0.988008897,9.60533857 1.13242244,9.78019645 C3.79142244,12.9078082 6.58142244,14.4920919 9.42542244,14.4920919 L9.46042244,14.4920919 C13.5394224,14.4741114 16.6934224,11.2196371 17.8604224,9.822151 C18.0095734,9.6511131 18.0125381,9.39726759 17.8674224,9.2228003 L17.8674224,9.2228003 Z M9.49942244,13.3932823 C7.35251405,13.3646853 5.63255349,11.6080263 5.65157552,9.46333471 C5.67059754,7.31864313 7.42144652,5.59270141 9.56852513,5.6021069 C11.7156037,5.61151239 13.4512316,7.35272696 13.4514224,9.49750271 C13.4349115,11.6625186 11.6668124,13.4054651 9.49942244,13.3932823 L9.49942244,13.3932823 Z M9.49942244,6.61762258 C7.91092198,6.63961751 6.63891624,7.93990193 6.65354481,9.52676854 C6.66817338,11.1136351 7.96393479,12.3902997 9.55257137,12.3830695 C11.1412079,12.3758393 12.4252698,11.0874333 12.4254224,9.50049946 C12.4127657,7.89797688 11.1037033,6.60820738 9.49942244,6.61762258 L9.49942244,6.61762258 Z"}))},jl=(0,ae.flowRight)(fs,hl.Z)((e=>{let{t,iconColorClassName:r,...i}=e;return o().createElement(Nl,kt()({},i,{dataHook:"view-count-compact",ariaHidden:!0}),o().createElement(zl,{"aria-label":t("view-count.label",{count:i.count,numberFormatted:i.countFormatted}),className:r}))})),Vl="E54HWO",Kl="lkXNhM",ql="P7Wc3k",Xl=e=>{let{post:t,displayIcons:r,className:i,showViewCount:n,showCommentCount:s,commentClassName:a,viewCount:l,totalComments:u,viewCountFormatted:c,totalCommentsFormatted:d}=e;const h=r?jl:Ul,p=r?Zl:Ll,g=s&&(u>0||!t.isCommentsDisabled);return o().createElement("div",{className:it()(Vl,"post-stats",i),"data-hook":"post-stats"},n&&o().createElement(h,{count:l,countFormatted:c,className:it()(ql,"has-custom-focus",i),tabIndex:0}),g&&o().createElement(sl,{postLink:t.link,postPath:t.slug,className:it()(Kl,"has-custom-focus",a)},o().createElement(p,{showZero:!0,count:u,countFormatted:d,className:i})))};Xl.defaultProps={showViewCount:!0,showCommentCount:!0};const $l=(0,ct.$j)(((e,t)=>{let{post:r}=t;return{viewCount:Bl(e,(0,gn.F)(r)),totalComments:Fl(e,(0,gn.F)(r)),viewCountFormatted:Wl(e,(0,gn.F)(r)),totalCommentsFormatted:Gl(e,(0,gn.F)(r))}}))(Xl),Yl={container:"NT9zC5","list-medium":"eJayAP",listMedium:"eJayAP","list-large":"T6pLzn",listLarge:"T6pLzn",list:"KToN9P",search:"zGPuSQ",leftButtons:"PsEy9r",rightButtons:"L2cuMO"};class Ql extends n.Component{constructor(){super(...arguments),qe()(this,"handleLikeClick",(()=>{const{onLikeClick:e,post:t}=this.props;e((0,gn.F)(t))}))}render(){const{post:e,displayIcons:t,contentFontClassName:r,commentClassName:i,textColorClassName:n,type:s,forPublicUser:a,showViewCount:l,showCommentCount:u,showLikeCount:c,className:d}=this.props;return o().createElement("div",{"data-hook":"post-footer",className:it()(Yl.container,Yl[s],r,n,"post-footer",d)},(l||u)&&o().createElement("div",{className:Yl.leftButtons},o().createElement($l,{commentClassName:i,post:e,displayIcons:t,showViewCount:l,showCommentCount:u})),c&&o().createElement("div",{className:Yl.rightButtons},o().createElement(Tl,{onClick:a(this.handleLikeClick),entity:e,className:"post-footer__like-button"})))}}Ql.defaultProps={showViewCount:!0,showCommentCount:!0,showLikeCount:!0};const Jl=(0,ae.flowRight)(wa,hl.Z,dl,as)(Ql),eu="Ym42pV",tu=e=>{let{categoryLink:t,categoryPath:r,children:i,...n}=e;return o().createElement(ol,kt()({},n,{href:t,path:lo.vt+"/"+(0,ae.trimStart)(r,"/"),sectionId:"blog",className:it()(eu,n.className)}),i)},ru={container:"CS4xCt",link:"pratMU","list-medium":"d7TwYL",listMedium:"d7TwYL","list-large":"g99UQY",listLarge:"g99UQY",list:"u0T9F0",slider:"TRcECH","text-on-image-medium":"ewnq0g",textOnImageMedium:"ewnq0g","pg-text-on-image-small":"dU7Co_",pgTextOnImageSmall:"dU7Co_","pg-text-on-image-large":"TpXFK4",pgTextOnImageLarge:"TpXFK4","pg-text-on-image-medium":"sEWsEY",pgTextOnImageMedium:"sEWsEY",categoryLabelButton:"dqpczu",categoryLabelText:"SkWvPq",mobile:"iT3c03"},iu=(0,ct.$j)(((e,t,r)=>{let{post:i}=t;return{mainCategory:ts(e,i),mainCategoryDisplayLabel:rs(e,i),mainCategoryLink:is(e,i,Ws(e)),isCategoryLabelLayoutText:aa(e),isCategoryLabelUpperCase:ha(e),useMobileSettings:oa(e),categoryLabelClicked:r.categoryLabelClicked}}))((e=>{let{mainCategory:t,mainCategoryDisplayLabel:r,mainCategoryLink:i,isCategoryLabelLayoutText:n,isCategoryLabelUpperCase:s,postListLayout:a,useMobileSettings:l,categoryLabelClicked:u,className:c}=e;const d=it()([ru.link,l&&ru.mobile,n?ru.categoryLabelText:ru.categoryLabelButton]),h=it()([ru.container,ru[a],c]),p=s?r.toUpperCase():r;return o().createElement("div",{className:h,"data-hook":"post-category-label"},o().createElement(tu,{categoryLink:i,categoryPath:t.slug,className:d,onClick:()=>u(t)},p))}));const nu=function(e,t){return r=>{const i=(0,ct.v9)(ul.n)?e:t;return o().createElement(i,r)}};var ou=r(75781);const su=e=>{e.stopPropagation(),e.preventDefault()},au=e=>{let{children:t,...r}=e;const i=(0,ae.omit)(r,["user","tReady","lng"]);return o().createElement("span",kt()({style:{pointerEvents:"none"}},i,{onClick:su}),t)};const lu=e=>{let{to:t,children:r,...i}=e;const n=(0,ct.v9)(Fs);return o().createElement("a",kt()({href:""+(0,ae.trimEnd)(n,"/")+t},i),r)},uu=nu(function(e,t){return void 0===t&&(t=au),r=>{var i;return(null==(i=r.user)?void 0:i.privacyStatus)===ou.z?o().createElement(t,r):o().createElement(e,r)}}((e=>{let{user:t,className:r,children:i}=e;const n=(0,ct.ol)(),s=(0,ct.v9)((e=>((e,t)=>{var r;return null!=t&&t.siteMemberId?null==(r=(e=>e.profileUrls)(e))?void 0:r[null==t?void 0:t.siteMemberId]:void 0})(e,t)));return o().createElement(lu,{onClick:e=>{e.preventDefault(),n.navigateToProfile(null==t?void 0:t.siteMemberId,null==t?void 0:t.slug)},"data-hook":"profile-link",href:s,className:r},i)})),au);var cu=r(70592);var du=r(52913);const hu="ERiany",pu="oEw3_Y",gu="wh3B27",mu="hULj4j",fu=(e,t)=>(0,ae.merge)(e,e.top&&{top:Number(e.top)-t+"px"}),yu=e=>{let{children:t,style:r={},className:i,triangle:n={},distanceFromElement:s}=e;return o().createElement("span",{"data-hook":"tooltip-container",className:it()(i,hu),style:fu(r,s)},o().createElement("span",{className:it()(pu,n.borderColorClass||gu),style:{borderBottomColor:n.borderColor}}),t,o().createElement("span",{className:it()(mu,n.borderBottomColorClass||gu),style:{borderBottomColor:n.backgroundColor}}))};yu.defaultProps={distanceFromElement:2};const vu=yu,bu="s3LKPq",Su="MXGxaz",Pu={[du.ROLE_OWNER]:e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",style:{fillRule:"evenodd"}},e),o().createElement("path",{d:"M15.3812,6.495914 L12.6789333,8.77258837 C12.6191333,8.84477644 12.5099333,8.85722265 12.4354,8.79997005 C12.4215333,8.79001308 12.4094,8.77756686 12.3998667,8.76429089 L9.78686667,6.14327115 C9.67766667,5.99225704 9.46186667,5.95491839 9.305,6.05863687 C9.26946667,6.08186981 9.23913333,6.11091099 9.21573333,6.14493065 L6.60013333,8.81075677 C6.5464,8.88626383 6.43893333,8.90534803 6.3592,8.85390366 C6.34446667,8.84394669 6.33146667,8.83233022 6.32106667,8.81905425 L3.61966667,6.50587098 C3.5018,6.36149485 3.28426667,6.33577266 3.13346667,6.44861837 C3.0494,6.51167921 3,6.60792997 3,6.70998895 L4,14 L15,14 L16,6.70169148 C16,6.51831719 15.8448667,6.36979232 15.6533333,6.36979232 C15.5476,6.36979232 15.4470667,6.41625821 15.3812,6.495914 Z"})),[du.ROLE_EDITOR]:e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 19 19",style:{fillRule:"evenodd"}},e),o().createElement("path",{d:"M3.0299,4.05263158 C7.59702941,1.31578947 11.4029706,1.31578947 15.9701,4.05263158 C16.0788412,11 16.2419529,14.3157895 9.5,17 C2.75804706,14.3157895 2.92115882,11 3.0299,4.05263158 Z M9.39332888,11.2792808 C9.45851262,11.2381732 9.54151575,11.2381732 9.60669949,11.2792808 L11.6016734,12.5373957 C11.7030093,12.6013024 11.8276546,12.6164227 11.9413311,12.5785984 C12.1509459,12.508852 12.2643317,12.2823849 12.1945852,12.07277 L11.4749606,9.91002155 L13.4066196,8.57961581 C13.5127893,8.50649273 13.5772092,8.38668249 13.5796591,8.25779106 C13.5838574,8.03691706 13.408207,7.85445994 13.1873329,7.85026169 L10.7205982,7.80337534 L9.87345622,5.59604095 C9.83283079,5.4901863 9.74919031,5.40654582 9.64333566,5.36592038 C9.43708931,5.28676612 9.20572641,5.38979461 9.12657215,5.59604095 L8.27943019,7.80337534 L5.81269542,7.85026169 C5.68380399,7.85271159 5.56399375,7.91713145 5.49087067,8.02330121 C5.36556375,8.20523836 5.41147163,8.45430889 5.59340879,8.57961581 L7.52506779,9.91002155 L6.80544312,12.07277 C6.76761883,12.1864466 6.78273912,12.3110919 6.84664582,12.4124278 C6.96448715,12.599287 7.21149576,12.655237 7.39835499,12.5373957 L9.39332888,11.2792808 Z"})),[du.ROLE_WRITER]:e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",style:{fillRule:"evenodd"}},e),o().createElement("path",{d:"M6.45342775,7.90809427 C6.47137986,7.67117444 6.68963973,5.87674187 8.37808299,4.90340332 C8.41115266,5.58764834 8.60768103,6.30696092 8.92231539,6.73461406 C8.84483786,6.6302667 9.46560296,3.27490017 11.0397196,2.66934333 C11.3288431,2.55815351 12.4683297,2.18523997 13.0900396,2.03128484 C13.7117496,1.87647441 14.1917323,2.33662919 13.9243403,2.52821779 C13.1845244,3.0602183 12.4730539,4.28587219 12.2406213,4.77168616 C12.0412584,5.18822031 11.627415,6.07773884 11.1776674,7.44451827 C10.9017718,8.28186312 9.66213133,9.06617897 8.89396996,9.20901512 C9.40607754,9.70765868 10.5597369,9.42626292 10.5474538,9.45790925 C9.40607754,12.5943174 8.43571871,13.3401444 8.08140074,13.6309486 C7.9169972,13.7669423 7.72613791,13.8926723 7.57779679,14.0320872 C7.49748471,14.1056436 7.47386352,14.1980166 7.43984899,14.2792707 C7.27355575,14.6735669 6.94852806,15.5810469 6.46571077,17 L6.15580065,16.7605142 C6.3853987,15.1525384 6.44397927,14.5478369 6.48649743,14.313483 C6.51106347,14.1800552 6.4505932,14.1056436 6.35610841,14.0380744 C5.91108504,13.721611 5.59361613,13.3521187 5.36401808,12.9458482 C5.16371032,12.5934621 5.05977705,12.2119955 5.01820374,11.816844 C4.97096134,11.3643869 5.0115898,10.889692 5.18827637,10.4201288 C5.29315449,10.1430096 5.42637805,9.82911217 5.68432153,9.36125964 C5.92147836,10.2165659 6.64806642,10.3226239 6.65562521,10.3209133 C6.58759615,10.1122186 6.33721145,9.42711822 6.45342775,7.90809427"}))};class wu extends o().Component{constructor(){super(...arguments),qe()(this,"state",{isTooltipVisible:!1}),qe()(this,"handleMouseEnter",(()=>{this.timeout=setTimeout((()=>{this.setState({isTooltipVisible:!0})}),150)})),qe()(this,"handleMouseLeave",(()=>{clearTimeout(this.timeout),this.setState({isTooltipVisible:!1})})),qe()(this,"render",(()=>{const{role:e,t,iconColorClassName:r,ariaLabel:i}=this.props,n=Pu[e];return n?o().createElement("span",{"aria-label":i,"data-hook":"badge",className:bu,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.state.isTooltipVisible&&o().createElement(vu,{className:Su},t("badge."+e)),o().createElement(n,{className:r})):null}))}componentWillUnmount(){clearTimeout(this.timeout)}}const _u=(0,ae.flowRight)(hl.Z,fs)(wu),Cu=e=>{let{user:t}=e;const{t:r}=(0,cs.$)(),i=(e=>((e,t)=>{var r;return null==e||null==(r=e.appStore)||null==(r=r[t])||null==(r=r.permissions)?void 0:r.role})(e,cu.BLOG_APP_ID))(t),n=(e=>{let{t,role:r}=e;switch(r){case"owner":return t("badge.owner");case"admin":return t("badge.admin");case"writer":return t("badge.writer");case"editor":return t("badge.editor");default:return}})({t:r,role:i});return i?o().createElement(_u,{role:i,ariaLabel:n}):null},Eu="tQ0Q1A",Iu=e=>{let{name:t,className:r}=e;return o().createElement("span",{title:t,className:it()(Eu,"user-name",r),"data-hook":"user-name"},t)};var Ou=r(2186);const xu={en:{s:"1s",ss:"%ds",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd"},nl:{s:"1sec.",ss:"%dsec.",m:"1min.",mm:"%dmin.",h:"1u.",hh:"%du."},cs:{s:"1sek",ss:"%dsek",m:"1min",mm:"%dmin",h:"1hod",hh:"%dhod"},da:{s:"1s",ss:"%ds",m:"1m",mm:"%dm",h:"1t",hh:"%dt"},de:{s:"1Sek.",ss:"%dSek.",m:"1Min.",mm:"%dMin.",h:"1Std.",hh:"%dStd."},fr:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},hi:{s:"1\u0938\u0947",ss:"%d\u0938\u0947",m:"1\u092e\u093f",mm:"%d\u092e\u093f",h:"1\u0918\u0902\u091f\u093e",hh:"%d\u0918\u0902\u091f\u093e"},it:{s:"1sec",ss:"%dsec",m:"1min",mm:"%dmin",h:"1ora",hh:"%dore"},ja:{s:"1\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593"},ko:{s:"1\ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"1\uc2dc\uac04",hh:"%d\uc2dc\uac04"},lt:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1val",hh:"%dval"},nb:{s:"1sek",ss:"%dsek",m:"1min",mm:"%dmin",h:"1time",hh:"%dtimer"},pl:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},pt:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},es:{s:"1seg",ss:"%dseg",m:"1min",mm:"%dmin",h:"1h",hh:"%dhs"},sv:{s:"1s",ss:"%ds",m:"1min",mm:"%dmin",h:"1h",hh:"%dh"},th:{s:"1\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1\u0e19\u0e32\u0e17\u0e35",mm:"%d\u0e19\u0e32\u0e17\u0e35",h:"1\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d\u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07"},tr:{s:"1sn.",ss:"%dsn.",m:"1dk.",mm:"%ddk.",h:"1sa.",hh:"%dsa."},ru:{s:"1\u0441\u0435\u043a.",ss:"%d\u0441\u0435\u043a.",m:"1d\u043c\u0438\u043d.",mm:"%d\u043c\u0438\u043d.",h:"1\u0447.",hh:"%d\u0447."},"zh-cn":{s:"1\u79d2",ss:"%d\u79d2",m:"1d\u5206\u9418",mm:"%d\u5206\u9418",h:"1\u5c0f\u6642",hh:"%d\u5c0f\u6642"},uk:{s:"1\u0441.",ss:"%d\u0441.",m:"1d\u0445\u0432.",mm:"%d\u0445\u0432.",h:"1\u0433.",hh:"%d\u0433."}};var Au;!function(e){e.SECONDS="second",e.MINUTES="minute",e.HOURS="hour",e.DAYS="day"}(Au||(Au={}));const Tu=(e,{floorSeconds:t=!1,extraShortExpression:r=!1}={},i={})=>{let n;return o=>{n||void 0===Intl.RelativeTimeFormat||(n=new Intl.RelativeTimeFormat(e,{...i}));let s=(new Date).getTime()-new Date(o).getTime();isNaN(s)&&(console.error(`[@wix/wix-i18n-config/relative-time-formatter] received invalid time: ${o}`),s=1e3);const a=(e=>{const t=e<0?-e:e;switch(!0){case t<6e4:return Au.SECONDS;case t<36e5:return Au.MINUTES;case t<864e5:return Au.HOURS;default:return Au.DAYS}})(s),l=((e,t,r)=>{let i;switch(t){case Au.SECONDS:i=r?1:e/1e3;break;case Au.MINUTES:i=e/1e3/60;break;case Au.HOURS:i=e/1e3/60/60;break;case Au.DAYS:i=e/1e3/60/60/24;break;default:i=e}return-Math.round(i)})(s,a,t),u=r||!n?((e,t,r)=>{const i={[Au.SECONDS]:"ss",[Au.MINUTES]:"mm",[Au.HOURS]:"hh",[Au.DAYS]:"dd"},n=-1===r?i[t][0]:i[t],o=xu[e]?xu[e][n]:null;return o?o.replace("%d",""+-r):null})(e,a,l):null;return u||(n?n.format(l,a):o)}},Lu=e=>new Date(e).getTime()>(new Date).getTime()-6e4,Mu=e=>new Date(e).getTime()>(new Date).getTime()-6048e5,Ru=e=>Mu(e)?"timeRelative":(e=>(new Date).getFullYear()!==new Date(e).getFullYear())(e)?"fullDate":"date";function Nu(e,t){if(!e)return;const r=new Date(e);if(t){const e=function(e){const t=new Date,r=t.toLocaleString("ja",{timeZone:e}).split(/[/\s:]/).map(Number);r[1]--;const i=Date.UTC(...r),n=new Date(t).setMilliseconds(0);return(n-i)/60/1e3}(t),i=e-r.getTimezoneOffset();return new Date(new Date(r.getTime()-60*i*1e3).toISOString())}return r}let ku,Du;const Zu=({date:e,lng:t,rtfFormatter:r,timezone:i})=>{const n=Ru(e);if(ku&&t===Du||!r||(ku=r,Du=t),"timeRelative"===n&&ku)return Lu(e)?"few-seconds-ago":ku(new Date(e));let o=e;"timeRelative"!==n&&i&&(o=Nu(e,i));const s="date"===n||"fullDate"===n?Xi.formats.date[n]:void 0;return new Intl.DateTimeFormat(t,s).format(new Date(o))};const Hu=(0,ae.flowRight)((function(e){return(0,ae.flowRight)(fs,(0,ct.$j)((e=>{const t=(0,ut.G3)(e),r=(0,ut.EP)(e),i=Tu(t);return{formatRelativeTime:e=>Zu({date:e,lng:t,rtfFormatter:i,timezone:r})}})))(e)}),fs)((e=>{let{className:t,time:r,timeFormatted:i,formatRelativeTime:n,t:s}=e;const a=s(i||n(r));return o().createElement("span",{title:a,className:it()(t,"time-ago"),"data-hook":"time-ago"},a)})),Bu=e=>{let{minutes:t,isShortLabel:r,children:i,...n}=e;const{t:s}=(0,cs.$)();if("number"!=typeof t)return null;const a=s(r?"time-to-read.short-label":"time-to-read.label",{minutes:t});return o().createElement("span",kt()({},n,{title:a,"data-hook":"time-to-read"}),a)},Wu=e=>{let{containerClassName:t,itemClassName:r,separatorClassName:i=r,children:n,separator:s}=e;const a=(0,ae.map)(o().Children.toArray(n),((e,t,n)=>{const a=[o().createElement("li",{key:e.key,className:r},e)];return t{let{className:t,applyFeedDesign:r,getPostClassName:i,...n}=e;const s={className:zu,...r?{separatorBackgroundColorClassName:it()(i("description-background-color"))}:{}};return o().createElement(Fu,kt()({itemClassName:ju,containerClassName:it()(Uu,t),separator:o().createElement(Gu.yH,s)},n))};Vu.defaultProps={section:st.gN};const Ku=(0,ae.flowRight)((0,ct.$j)(((e,t)=>{let{section:r}=t;return{section:r}})),oo.Z)(Vu),qu="MBUSKJ",Xu="UZa2Xr",$u=e=>{let{className:t,date:r,dateFormatted:i,readTime:n,isShortReadTimeLabel:s,showPublishDate:a,showReadingTime:l}=e;return o().createElement(Ku,{className:it()(t,qu),itemClassName:Xu},a&&o().createElement(Hu,{className:"post-metadata__date",time:r,timeFormatted:i}),l&&o().createElement(Bu,{className:"post-metadata__readTime",minutes:n,isShortLabel:s}))},Yu={container:"dZs5e3",search:"krCqqh",large:"mtJpOF","side-by-side-mobile":"PZIDK7",sideBySideMobile:"PZIDK7",userName:"mJ89ha",profileLink:"taLqKM"},Qu=e=>{var t,r;let{post:i,type:n,showAuthorName:s=!0,showAuthorBadge:a=!0,showPublishDate:l=!0,showReadingTime:u=!0,className:c}=e;const d=(0,Ou.Z)(),{applyFeedDesign:h,getPostClassName:p}=(0,Jn.Z)(),g=it()(Yu.userName,!h&&["blog-link-hover-color",d.textColorClassName],p((0,fa.Wv)(n,"description-color"),"description-font","link-hashtag-hover-color"));return o().createElement("div",{className:it()([Yu.container,n?Yu[n]:void 0,c])},s&&o().createElement(uu,{user:i.owner,className:Yu.profileLink},o().createElement(Iu,{className:g,name:null!=(t=null==(r=i.owner)?void 0:r.name)?t:"-"}),a&&o().createElement(Cu,{user:i.owner})),(l||u)&&o().createElement($u,{date:i.firstPublishedDate||new Date,dateFormatted:i.firstPublishedDateFormatted||i.dateByStatus,readTime:i.timeToRead,isShortReadTimeLabel:!0,className:it()(p("description-font",(0,fa.Wv)(n,"description-color"))),showPublishDate:l,showReadingTime:u}))},Ju="lAV2rI";var ec=r(47684);const{STATIC_MEDIA_URL:tc}=ec,rc=({fittingType:e,src:t,target:r,options:i})=>{const n=ec.getPlaceholder(e,t,r,{...i,autoEncode:!0});return n?.uri&&!/^[a-z]+:/.test(n.uri)&&(n.uri=`${tc}${n.uri}`),n},ic=/^[a-z]+:/,nc=e=>{const{id:t,containerId:r,uri:i,alt:o,name:s="",role:a,width:l,height:u,displayMode:c,devicePixelRatio:d,quality:h,alignType:p,bgEffectName:g="",focalPoint:m,upscaleMethod:f,className:y="",crop:v,imageStyles:b={},targetWidth:S,targetHeight:P,targetScale:w,onLoad:_=(()=>{}),onError:C=(()=>{}),shouldUseLQIP:E,containerWidth:I,containerHeight:O,getPlaceholder:x,isInFirstFold:A,placeholderTransition:T,socialAttrs:L,isSEOBot:M,skipMeasure:R,lazyLoadImgExperimentOpen:N,hasAnimation:k,allowWEBPTransform:D}=e,Z=n.useRef(null);let H="";const B="blur"===T,W=n.useRef(null);if(!W.current)if(x||E||A||M){const e={upscaleMethod:f,...h||{},shouldLoadHQImage:A,isSEOBot:M,hasAnimation:k,allowWEBPTransform:D};W.current=(x||rc)({fittingType:c,src:{id:i,width:l,height:u,crop:v,name:s,focalPoint:m},target:{width:I,height:O,alignment:p,htmlTag:"img"},options:e}),H=!W.current.transformed||A||M?"":"true"}else W.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const F=!M&&(x||E)&&!A&&W.current.transformed,G=n.useMemo((()=>JSON.stringify({containerId:r,...r&&{containerId:r},...p&&{alignType:p},...R&&{skipMeasure:!0},displayMode:c,...I&&{targetWidth:I},...O&&{targetHeight:O},...S&&{targetWidth:S},...P&&{targetHeight:P},...w&&{targetScale:w},isLQIP:F,isSEOBot:M,lqipTransition:T,imageData:{width:l,height:u,uri:i,name:s,displayMode:c,hasAnimation:k,...h&&{quality:h},...d&&{devicePixelRatio:d},...m&&{focalPoint:m},...v&&{crop:v},...f&&{upscaleMethod:f}}})),[r,p,R,c,O,I,S,P,w,F,M,T,l,u,i,s,h,d,m,v,f,k]),U=W.current,z=U?.uri,j=U?.srcset,V=U.css?.img,K=`${Ju} ${y}`;n.useEffect((()=>{const e=Z.current;_&&e?.currentSrc&&e?.complete&&_({target:Z.current})}),[]);const q=U&&!U?.transformed?`max(${l}px, 100%)`:S?`${S}px`:null;return n.createElement("wow-image",{id:t,class:K,"data-image-info":G,"data-bg-effect-name":g,"data-has-ssr-src":H,"data-animate-blur":!M&&F&&B?"":void 0,style:q?{"--wix-img-max-width":q}:{}},n.createElement("img",{src:z,ref:Z,alt:o||"",role:a,style:{...V,...b},onLoad:_,onError:C,...I&&{width:I},...O&&{height:O},...L,...A?{srcSet:j?.dpr?.map((e=>ic.test(e)?e:`${tc}${e}`)).join(", "),fetchpriority:"high"}:N?{loading:"lazy"}:{}}))};var oc=r(6837);Us()||window.screen.width,Us()||window.devicePixelRatio;const sc=e=>{var t;if("string"==typeof e)return e;if(e){if("id"in e&&""!==e.id)return null!==(t=e.id)&&void 0!==t?t:"file_name"in e?e.file_name:void 0;if("file_name"in e)return e.file_name}},ac=({pathname:e,width:t,height:r,imageHost:i})=>(0,oc.resizeThumbnail)(i)(e,t,r),lc=e=>o().createElement("svg",kt()({width:"1000",height:"1000",viewBox:"0 0 1000 1000"},e),o().createElement("circle",{cx:"500",cy:"500",r:"500",fill:"#cccccc"}),o().createElement("path",{fill:"#a0a09f",d:"M830.8,874.927c-77.344-60.8-187.181-104.877-227.88-111.347-20.335-3.233-20.8-59.1-20.8-59.1s59.746-59.106,72.768-138.584c35.029,0,56.666-84.5,21.631-114.226C677.986,420.37,721.551,206,501,206S324.015,420.37,325.473,451.666c-35.033,29.729-13.4,114.226,21.632,114.226,13.021,79.478,72.77,138.584,72.77,138.584s-0.464,55.871-20.8,59.1c-40.883,6.5-151.537,50.943-228.934,112.176C65.84,784.12,0,649.751,0,500,0,223.858,223.858,0,500,0s500,223.858,500,500C1000,649.3,934.559,783.311,830.8,874.927ZM500,1000h0Z"})),uc="lR3yj5",cc="dDcMfv",dc=e=>{var t;let{image:r,size:i,ariaLabel:n}=e;const s=null!=(t=sc(r))?t:r&&"url"in r?r.url:void 0;return s?o().createElement(nc,{alt:n,className:it()(uc,"fluid-avatar-image"),uri:s,displayMode:"fill",width:i,height:i,targetWidth:i,targetHeight:i,"data-hook":"avatar-image"}):o().createElement("span",{"aria-label":n,className:it()(uc,"fluid-avatar-image"),"data-hook":"avatar-image"},o().createElement(lc,{className:cc}))},hc={IMAGE_SIZE_DEFAULT:"32px",imageSizeDefault:"32px",IMAGE_SIZE_LARGE:"40px",imageSizeLarge:"40px",IMAGE_SIZE_EXTRA_LARGE:"92px",imageSizeExtraLarge:"92px",IMAGE_SIZE_PROMOTE:"100px",imageSizePromote:"100px",IMAGE_SIZE_MEMBER:"80px",imageSizeMember:"80px",IMAGE_SIZE_WIDGET:"30px",imageSizeWidget:"30px",IMAGE_SIZE_COMMENT:"40px",imageSizeComment:"40px",IMAGE_SIZE_COMMENT_SEARCH:"30px",imageSizeCommentSearch:"30px",image:"ERF5R1",large:"A9WFUN",extraLarge:"A0qBRg",promote:"zI70HL",member:"pozZSb",widget:"Zcb_uj",comment:"bCACxF",commentSearch:"C3KamW"},pc=e=>2*parseInt(e,10),gc={large:pc(hc.IMAGE_SIZE_LARGE),extraLarge:pc(hc.IMAGE_SIZE_EXTRA_LARGE),promote:pc(hc.IMAGE_SIZE_PROMOTE),widget:pc(hc.IMAGE_SIZE_WIDGET),comment:pc(hc.IMAGE_SIZE_COMMENT),commentSearch:pc(hc.IMAGE_SIZE_COMMENT_SEARCH)},mc=pc(hc.IMAGE_SIZE_DEFAULT),fc=e=>{var t;let{className:r,type:i,user:n}=e;const s=null!=(t=i&&gc[i])?t:mc,[a]=(0,cs.$)();return o().createElement("span",{className:it()(hc.image,i&&hc[i],r,"avatar-image")},o().createElement(dc,{ariaLabel:a("aria-label.authors-picture"),image:null==n?void 0:n.image,size:s}))},yc="lBv2XN",vc="dlINDG",bc=e=>{let{type:t,user:r={},isImageVisible:i,isNameVisible:n,isBadgeVisible:s}=e;const a=it()(yc,"blog-text-color","blog-link-hover-color","avatar","blog-post-text-color");return o().createElement("span",{className:a},i&&o().createElement(fc,{type:t,user:r}),n&&r.name&&o().createElement(Iu,{className:vc,name:r.name}),n&&s&&o().createElement(Cu,{user:r}))};bc.defaultProps={isImageVisible:!0,isNameVisible:!0,isBadgeVisible:!0,type:bc.DEFAULT};const Sc=bc;var Pc=r(88677),wc=r.n(Pc);let _c=null;const Cc="undefined"!=typeof document;class Ec extends o().Component{constructor(e,t){super(e,t),this.anchor=null,this.focus=this.focus.bind(this),this._onBlur=this._onBlur.bind(this),this._setRoot=this._setRoot.bind(this)}contains(e){return this.root.contains(e)}focus(){!1===this.contains(document.activeElement)&&this.root.focus()}trapFocus(){clearTimeout(_c),_c=setTimeout(this.focus,10)}returnFocus(){this.anchor&&"object"==typeof this.anchor&&"function"==typeof this.anchor.focus&&this.anchor.focus()}componentDidMount(){Cc&&(this.anchor=document.activeElement),this.trapFocus(),document.addEventListener("focus",this._onBlur,!0)}componentWillUnmount(){document.removeEventListener("focus",this._onBlur,!0),clearTimeout(_c),this.returnFocus(),this.anchor=null}render(){const{children:e,element:t,className:r}=this.props;return o().createElement(t,{ref:this._setRoot,tabIndex:0,className:r,children:e})}_setRoot(e){this.root=e}_onBlur(e){const t=this.anchor;t&&!1===t.contains(e.target)&&(e.preventDefault(),this.trapFocus())}}Ec.defaultProps={element:"div"};const Ic=Ec;class Oc extends o().Component{constructor(e,t){super(e,t),this._onKeyUp=this._onKeyUp.bind(this)}render(){const{active:e,className:t,children:r,element:i,onExit:n}=this.props;return e?o().createElement("div",{className:t+"-wrapper",onKeyUp:this._onKeyUp},o().createElement("div",{"aria-hidden":"true",className:t+"-backdrop",onClick:n}),o().createElement(Ic,{className:t,element:i},r)):null}_onKeyUp(e){"Escape"===e.key&&this.props.onExit()}}Oc.defaultProps={active:!0,className:"focus-trap",onExit:()=>{}};const xc=Oc,Ac=(e,t)=>(0,ct.$j)((e=>({isRTL:(0,ut.X2)(e)})))((r=>{let{isRTL:i,...n}=r;const s=i?t:e;return o().createElement(s,n)})),Tc=Ac((e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",role:"img"},e),o().createElement("path",{d:"M2.44398805,5.99973295 C1.62345525,5.9690612 0.980075653,5.28418875 1.00047182,4.46312144 C1.02086799,3.64205413 1.69745853,2.98998831 2.51850166,3.0001164 C3.33954478,3.01024449 3.99985313,3.67880182 4,4.50012255 C3.98424812,5.34399206 3.28763905,6.0153508 2.44398805,5.99973295 L2.44398805,5.99973295 Z M2.44398805,10.9997329 C1.62345525,10.9690612 0.980075653,10.2841888 1.00047182,9.46312144 C1.02086799,8.64205413 1.69745853,7.98998831 2.51850166,8.0001164 C3.33954478,8.01024449 3.99985313,8.67880182 4,9.50012255 C3.98424812,10.3439921 3.28763905,11.0153508 2.44398805,10.9997329 L2.44398805,10.9997329 Z M2.44398805,15.9997329 C1.62345525,15.9690612 0.980075653,15.2841888 1.00047182,14.4631214 C1.02086799,13.6420541 1.69745853,12.9899883 2.51850166,13.0001164 C3.33954478,13.0102445 3.99985313,13.6788018 4,14.5001225 C3.98424812,15.3439921 3.28763905,16.0153508 2.44398805,15.9997329 L2.44398805,15.9997329 Z"}))),(e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"19",viewBox:"0 0 19 19",role:"img"},e),o().createElement("path",{d:"M2.44398805,5.99973295 C1.62345525,5.9690612 0.980075653,5.28418875 1.00047182,4.46312144 C1.02086799,3.64205413 1.69745853,2.98998831 2.51850166,3.0001164 C3.33954478,3.01024449 3.99985313,3.67880182 4,4.50012255 C3.98424812,5.34399206 3.28763905,6.0153508 2.44398805,5.99973295 L2.44398805,5.99973295 Z M2.44398805,10.9997329 C1.62345525,10.9690612 0.980075653,10.2841888 1.00047182,9.46312144 C1.02086799,8.64205413 1.69745853,7.98998831 2.51850166,8.0001164 C3.33954478,8.01024449 3.99985313,8.67880182 4,9.50012255 C3.98424812,10.3439921 3.28763905,11.0153508 2.44398805,10.9997329 L2.44398805,10.9997329 Z M2.44398805,15.9997329 C1.62345525,15.9690612 0.980075653,15.2841888 1.00047182,14.4631214 C1.02086799,13.6420541 1.69745853,12.9899883 2.51850166,13.0001164 C3.33954478,13.0102445 3.99985313,13.6788018 4,14.5001225 C3.98424812,15.3439921 3.28763905,16.0153508 2.44398805,15.9997329 L2.44398805,15.9997329 Z",transform:"translate(9.582843, 9.542641) scale(-1, 1) translate(-9.582843, -9.542641) "})))),Lc="WmZAIu",Mc=()=>o().createElement("div",{className:Lc,id:"new-blog-popover-root"});Mc.getPopoverRootElement=()=>document.getElementById("new-blog-popover-root");const Rc=Mc,Nc={icon:"Bvf4SR",more:"_EA3Ke",actions:"Z9ijf3"};class kc extends n.Component{constructor(){super(...arguments),qe()(this,"component",null),qe()(this,"state",{isVisible:!1}),qe()(this,"handleClick",(e=>{e.stopPropagation(),this.state.isVisible?this.hideComponent():this.showComponent()})),qe()(this,"setContainer",(e=>this.container=e)),qe()(this,"setActionsContainer",(e=>this.actionsContainer=e)),qe()(this,"checkIfShouldRenderRight",((e,t)=>{const r=this.actionsContainer?this.actionsContainer.offsetWidth:0,i=e.right-t.right,n=t.left-e.left;return i>r&&n{const e=this.container.getBoundingClientRect(),t=this.getPopoverContainerRect(),r=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||0,i=document.body.offsetHeight,n=r+e.top,o=i-n-e.height,s=this.actionsContainer?this.actionsContainer.offsetHeight:0;this.setState({isAtTop:s>o-60&&s{const e=this.container.getBoundingClientRect(),t=this.getPopoverContainerRect(),r=document.getElementById(this.props.componentId).getBoundingClientRect(),i=this.actionsContainer?this.actionsContainer.offsetHeight:0,n=e.top-Math.max(r.top,0),o=window.innerHeight>r.bottom?r.bottom-Math.max(e.bottom,0):window.innerHeight-Math.max(e.bottom,0);this.setState({isAtTop:n>i&&o{this.component=await this.props.children(),document.addEventListener("click",this.hideComponent),this.setState({isVisible:!0},this.props.isSite?this.checkIfFits:this.checkIfFitsInEditor)})),qe()(this,"hideComponent",(()=>{document.removeEventListener("click",this.hideComponent),this.setState({isVisible:!1})})),qe()(this,"componentWillUnmount",(()=>{document.removeEventListener("click",this.hideComponent)})),qe()(this,"getPopoverContainerRect",(()=>(this.props.container||Rc.getPopoverRootElement()).getBoundingClientRect())),qe()(this,"calculateActionsContainerPosition",(()=>{const{isAtTop:e,isAtRight:t}=this.state,r=this.getPopoverContainerRect(),i=this.container.getBoundingClientRect();return{...e?{top:"auto",bottom:r.bottom-i.bottom}:{top:i.top-r.top+this.container.clientHeight},...t?{left:i.right-r.left}:{right:r.right-i.left}}})),qe()(this,"renderActionsContainer",(()=>{if(!this.state.isVisible)return null;const e=it()(Nc.actions,this.props.contentFontClassName,"blog-text-color","blog-dropdown-background-color"),t=this.calculateActionsContainerPosition(),r=o().createElement("div",{ref:this.setActionsContainer,className:e,style:t,role:"menu","data-hook":"actions"},o().createElement(xc,{active:this.state.isVisible},this.component));return wc().createPortal(r,this.props.container||Rc.getPopoverRootElement())})),qe()(this,"render",(()=>{const{id:e,icon:t,t:r,isWhite:i,className:n}=this.props,s=it()(n,Nc.more,"more-button",{[Nc.moreWhite]:i});return o().createElement(o().Fragment,null,o().createElement("button",{onClick:this.handleClick,className:s,ref:this.setContainer,onKeyUp:e=>{"Escape"===e.key&&this.hideComponent()},type:"button","aria-pressed":this.state.isVisible,"aria-label":r("more-button.more-actions"),id:e,"data-hook":"more-button"},o().createElement("span",{className:Nc.icon},t||o().createElement(Tc,{className:it()(this.props.iconColorClassName,"blog-post-homepage-link-hashtag-hover-fill")}))),this.renderActionsContainer())}))}}const Dc=(0,ae.flowRight)(fs,wa,hl.Z,(0,ct.$j)(((e,t,r,i)=>({isSite:(0,ut.tQ)(e),componentId:i.id}))))(kc),Zc=(0,ae.once)((async()=>(await r.e(4061).then(r.bind(r,39326))).default));var Hc=r(89002);const Bc="l6L1Fh",Wc="bFiLuu",Fc=(0,hl.Z)((e=>{let{IconComponent:t,className:r,iconColorClassName:i}=e;return o().createElement("div",{className:Wc},o().createElement("div",{className:it()(Bc,r)},o().createElement(t,{className:it()(i,r)})))})),Gc="XqK7Ko",Uc=e=>{let{post:t,className:r,iconClassName:i}=e;return t.isPinned?o().createElement("div",{className:it()(Gc,r)},o().createElement(Fc,{IconComponent:Hc.q,className:it()("pin-icon",i)})):null},zc={container:"SbjQym","side-by-side":"IStc0y",sideBySide:"IStc0y","pg-side-by-side-right":"_dR9OP",pgSideBySideRight:"_dR9OP","pg-side-by-side":"YD6Z1G",pgSideBySide:"YD6Z1G",grid:"Nn0z1D","pg-one-column":"SoK2Wc",pgOneColumn:"SoK2Wc","pg-grid":"DKNKji",pgGrid:"DKNKji","pg-grid-intermediate":"rA58nq",pgGridIntermediate:"rA58nq","pg-grid-large":"Ij__Zw",pgGridLarge:"Ij__Zw",slider:"jc3Fi0",list:"kAgxB9","list-medium":"MLEYRZ",listMedium:"MLEYRZ","list-large":"AwRwmV",listLarge:"AwRwmV","pg-medium":"otAa9D",pgMedium:"otAa9D",withoutHeaderMetadata:"Fsmreb","with-category-label":"wjdRtO",withCategoryLabel:"wjdRtO","spacing-bottom":"TjmPXo",spacingBottom:"TjmPXo","side-by-side-mobile":"vL7wf0",sideBySideMobile:"vL7wf0","text-on-image-mobile":"YVAddP",textOnImageMobile:"YVAddP",search:"Mo4mKl",metadata:"V_aJB6","with-three-dots":"CH7asw",withThreeDots:"CH7asw",small:"PVEWzt",medium:"eOIH_4",large:"G1sD4r","one-column-mobile":"pWST8_",oneColumnMobile:"pWST8_",mobile:"rDlcKq",unpublishedBadge:"YiEou4",unpublishedBadgeBorder:"YfT_t7",icons:"Dgs_GX",moreButton:"GygROR",enter:"Q8iQIg",appear:"dtYGur",enterActive:"VL02DE",appearActive:"EhKyap",postOptions:"Z0hXe1"},jc=e=>{let{moreButtonClass:t,moreButtonIcon:r,post:i,showHeaderIcons:n=!0,showMoreButton:s=!0,type:a,visibleActions:l}=e;const u={id:"more-button-"+(0,gn.F)(i),...r?{icon:r}:{}};return o().createElement("div",{className:it()(zc.postOptions,il.options)},n?o().createElement(Uc,{post:i,className:zc.icons,iconClassName:"blog-button-fill"}):o().createElement("div",{className:zc.icons}),o().createElement("div",{className:it()(zc.moreButton,zc[a],"blog-more-icon-fill",t)},s&&o().createElement(Dc,u,(async()=>{const e=await Zc();return o().createElement(e,{post:i,visibleActions:l})}))))},Vc=e=>{let{className:t,moreButtonClass:r,moreButtonIcon:i,post:n,hideAuthorBadge:s,showHeaderIcons:a=!0,showMoreButton:l=!0,showProfileImage:u=!0,style:c,type:d,visibleActions:h}=e;const{showAuthorName:p,showAuthorBadge:g,showAuthorPicture:m,showPublishDate:f,isMetadataHeaderVisible:y,showCategoryLabel:v,showReadingTime:b}=(S={post:n,hideAuthorBadge:s},(0,ct.v9)((e=>{const t=(e=>e.isPostInPreview)(e),r=!t&&((0,ao.Mf)(e)?(0,ao.R7)(e):(0,lr.Uw)(e)),i=!t&&(0,lr.Uu)(e),n=!t&&(0,lr.h7)(e),o=t?void 0:(0,lr.Qn)(e),s=!t&&(0,lr.fG)(e),a=r&&(0,lr.XU)(e),l=!t&&(0,lr.X2)(e),u=(0,lr.g7)(e),c=(0,lr.mE)(e),d=(0,lr.XJ)(e),h=(0,lr.dS)(e),p=(0,lr.vO)(e),g=(0,lr.Ho)(e),m=(0,lr.fM)(e),f=(0,lr.gJ)(e,S.section),y=c!==nn.UH;return{showComments:r,showRecentPosts:i,showViewCount:s,showCommentCount:a,showLikeCount:l,showAuthorName:u,showAuthorPicture:(0,lr.hO)(e,y),showAuthorBadge:!S.hideAuthorBadge&&(0,lr.gK)(e),authorInfoType:c,showPostUpdatedDate:d,showCategoryLabels:h,showPostTitle:p,showPublishDate:g,showReadingTime:m,showPostDescription:f,showMoreOptionsMenu:(0,lr.I$)(e),showCategoryLabel:!!ts(e,S.post)&&(0,lr.mH)(e),isMetadataFooterVisible:!t&&(s||a||l),isMetadataHeaderVisible:u||g||m,showRelatedPosts:n,relatedPostsLabelKey:o,showPostRating:(0,qn.X)(e,An.I8)&&(0,lr.tx)(e)}})));var S;const P=!y,w=it()(zc.container,zc[d],"blog-post-metadata-font","post-header",P&&zc.withoutHeaderMetadata,t,v&&zc.withCategoryLabel,p&&(f||b||m)&&zc.spacingBottom);return o().createElement("div",{className:w,style:c},o().createElement("div",{className:it()([zc.metadata,l&&zc.withThreeDots,il.metadataContainer])},y&&o().createElement(o().Fragment,null,p&&u&&m&&o().createElement("div",{className:il.avatar},o().createElement(uu,{user:n.owner},o().createElement(Sc,{user:n.owner,isNameVisible:!1}))),o().createElement(Qu,{post:n,type:d,className:il.postDetails,showAuthorName:p,showAuthorBadge:g,showPublishDate:f,showReadingTime:b}))),(a||l)&&o().createElement(jc,{moreButtonClass:r,moreButtonIcon:i,post:n,showHeaderIcons:a,showMoreButton:l,type:d,visibleActions:h}))},Kc=e=>{let{className:t}=e;return o().createElement("svg",{viewBox:"3 2 18 18",width:"18",height:"18",className:t},o().createElement("path",{d:"M20.9502,8.8922 C20.8322,8.5282 20.5222,8.2672 20.1432,8.2112 L15.1362,7.4842 L12.8962,2.9472 C12.5572,2.2592 11.4422,2.2592 11.1032,2.9472 L8.8642,7.4842 L3.8562,8.2112 C3.4772,8.2672 3.1682,8.5282 3.0492,8.8922 C2.9312,9.2562 3.0282,9.6502 3.3022,9.9172 L6.9262,13.4492 L6.0712,18.4362 C6.0062,18.8142 6.1582,19.1882 6.4682,19.4132 C6.7782,19.6412 7.1812,19.6692 7.5212,19.4912 L11.9992,17.1352 L16.4792,19.4912 C16.6262,19.5692 16.7862,19.6072 16.9452,19.6072 C17.1512,19.6072 17.3572,19.5412 17.5322,19.4132 C17.8422,19.1882 17.9942,18.8142 17.9292,18.4362 L17.0742,13.4502 L20.6982,9.9172 C20.9722,9.6502 21.0692,9.2562 20.9502,8.8922",fillRule:"evenodd",fill:"currentColor"}))},qc="JMAXlV",Xc="fbd51l",$c="hhO2ky",Yc="siwre6",Qc="MKPjdi",Jc="TbC84K",ed="j6jO4F",td="MrH3GO",rd="TYUuco",id=e=>{let{a11yLabel:t}=e;return o().createElement("span",{className:qc},t&&o().createElement("span",{className:Xc},t),o().createElement("span",{"aria-hidden":"true",className:$c},o().createElement(Kc,{className:it()(rd,Yc)})))},nd=e=>{let{rating:t,a11yLabel:r}=e;const i=Math.min(Math.max(t,0),5);return o().createElement("span",{className:qc},r&&o().createElement("span",{className:Xc},r),o().createElement("span",{"aria-hidden":"true",className:$c},[1,2,3,4,5].map((e=>{const t=function(e,t){if(t<=e)return"full";if(t-e<1){const r=t-e;return r<.25?"full":r>.75?"empty":"half"}return"empty"}(i,e);return"half"===t?o().createElement("span",{className:Jc,key:e},o().createElement(Kc,{key:e+"-start",className:it()(rd,ed,Yc)}),o().createElement(Kc,{key:e+"-end",className:it()(rd,td,Qc)})):o().createElement(Kc,{key:e,className:it()(rd,"full"===t?Yc:Qc)})}))))};const od={container:"A6pgue",ratingInfo:"KJeQ3_",withTransitions:"T5ArNO","fade-in":"M5aq50",fadeIn:"M5aq50","with-range":"TW0XHJ",withRange:"TW0XHJ","count-only":"z8kPtl",countOnly:"z8kPtl"},sd={default:"default",bracket_separated:"bracket-separated",with_range:"with-range",count_only:"count-only"},ad=(0,ae.flowRight)(fs)((e=>{let{className:t,rating:r,count:i,isLoading:n=!1,useTransitions:s=!1,t:a,layout:l=sd.default}=e;const u=o().useRef(s);return o().createElement("span",{className:it()(od.container,{[od.withTransitions]:u.current},od[l],t),"data-hook":it()("ratings-display",n?"":"is-ready")},l===sd.with_range?o().createElement(id,{a11yLabel:a("ratings-display.rating-aria-label",{rating:r})}):o().createElement(nd,{rating:n?0:r,a11yLabel:a("ratings-display.rating-aria-label",{rating:r})}),!n&&o().createElement("span",{className:od.ratingInfo},0===i?a("ratings-display.no-ratings"):(()=>{switch(l){case sd.default:return r.toFixed(1)+" | "+a("ratings-display.count",{count:i});case sd.bracket_separated:return r.toFixed(1)+" ("+i+")";case sd.count_only:return"("+i+")";case sd.with_range:return r.toFixed(1)+" / 5 ("+i+")";default:return}})()))}));var ld=r(63723),ud=r(52284),cd=r.n(ud);const dd="j1Y_aa",hd=Ht((e=>{var t;const r=null!=(t=e.as)?t:"span",i=o().useRef(null);return(0,n.useLayoutEffect)((()=>{if(e.clamp&&i.current){if(o().Children.count(e.children)>1)throw new Error("Please provide exacly one child to dotdotdot");cd()(i.current,{clamp:e.clamp,useExactLineHeight:e.useExactLineHeight,useNativeClamp:!0,truncationChar:"\u2026"})}}),[e]),o().createElement(r,{ref:i,className:it()(dd,e.className)},e.children)})),pd="wR7PET",gd="DxQ8C1",md="BOlnTh",fd=(0,ya.default)((e=>({WebkitLineClamp:e}))),yd=e=>{let{post:{content:t,excerpt:r},lineCount:i,descriptionLineCount:n}=e;const s=r?r.slice(0,Ea.KG):(0,ld.getContentText)(t).slice(0,Ea.KG);return o().createElement("div",{className:pd},n?o().createElement("div",{className:md,style:fd(n)},s):o().createElement(hd,{clamp:"auto",maxLineCount:i,className:gd},s))},vd={title:"T5UMT5","pg-medium":"mjh3Ex",pgMedium:"mjh3Ex","pg-grid":"I9XQQf",pgGrid:"I9XQQf","pg-grid-intermediate":"xwfLlB",pgGridIntermediate:"xwfLlB","pg-grid-large":"AreR2k",pgGridLarge:"AreR2k",slider:"LMmmGm","pg-one-column":"Qr0HYQ",pgOneColumn:"Qr0HYQ","pg-side-by-side-right":"zKj_nc",pgSideBySideRight:"zKj_nc","pg-side-by-side":"WD_8WI",pgSideBySide:"WD_8WI","list-medium":"tMAW2P",listMedium:"tMAW2P",list:"v0TP18","list-large":"PW6Nzn",listLarge:"PW6Nzn","pg-text-on-image-small":"nOu63e",pgTextOnImageSmall:"nOu63e","with-category-label":"_wPn3X",withCategoryLabel:"_wPn3X","pg-text-on-image-large":"xAtwHK",pgTextOnImageLarge:"xAtwHK","pg-text-on-image-medium":"ML3wIh",pgTextOnImageMedium:"ML3wIh","text-on-image-medium":"SmUSYw",textOnImageMedium:"SmUSYw","title-hover":"fcPJ4D",titleHover:"fcPJ4D",single:"iFTNPs","one-column-mobile":"zEYAqe",oneColumnMobile:"zEYAqe",mobile:"SSbNRm",clamp:"KNiaIk","inherit-font":"bD0vt9",inheritFont:"bD0vt9"},bd=(0,ya.default)(((e,t)=>({WebkitLineClamp:e,width:"calc(100% - "+(t||0)+")"}))),Sd=(0,ae.flowRight)(hl.Z,oo.Z,(0,ct.$j)((e=>({mobileLayoutName:(0,na.P9)(e)}))))((e=>{let{style:t,getPostClassName:r,layoutName:i,lineCount:n,titleLineCount:s,title:a,type:l,showCategoryLabel:u,layoutSidesPadding:c,mobileLayoutName:d,isHoverDisabled:h}=e;const p=it()(r((0,fa.Wv)(d||i,"title-color"),"title-font")),g=it()(vd.title,{[vd.titleHover]:!h,"blog-hover-container-element-color":!h},vd[l],"post-title",p,u&&vd.withCategoryLabel);return o().createElement("div",{className:g,style:t,"data-hook":"post-title"},s?o().createElement("p",{className:it()(t.fontSize?vd.inheritFont:p,vd.clamp),style:bd(s,c)},a):o().createElement(hd,{useExactLineHeight:!0,clamp:"auto",maxLineCount:n,className:t.fontSize?vd.inheritFont:p,as:"p"},a))})),Pd=(0,ya.default)((e=>({fontSize:e}))),wd=(0,ya.default)((e=>({fontSize:e}))),_d=(0,ya.default)((e=>({fontSize:e}))),Cd=(0,ya.default)((e=>({fontSize:e}))),Ed=(0,ya.default)((e=>({fontSize:e}))),Id={},Od=e=>{let{type:t,alignment:r,post:i,onLikeClick:n,itemConfig:s,titleFontClassName:a,contentFontClassName:l,contentFontClassNameWithStyle:u,postTitleFontSize:c,postDescriptionFontSize:d,postMetadataFontSize:h,isMetadataFooterVisible:p,isMetadataHeaderVisible:g,canSeeMoreButton:m,showPostDescription:f,applyFeedDesign:y,getPostClassName:v,layoutSidesPadding:b,hideAuthorBadge:S,isRTL:P,isFeedMoreActionsFixEnabled:w,galleryOptions:_={},textBoxAlignment:C,section:E,descriptionLineCount:I,titleLineCount:O,navigateProGalleryWithinPostPage:x,showCategoryLabel:A,shouldUsePostListMobileDescriptionFontSize:T,shouldUsePostListMobileTitleFontSize:L,visibleActions:M,defaultPostTitleFontSize:R,defaultPostDescriptionFontSize:N,showPostRating:k,isMobile:D,postAverageRating:Z,postTotalRatings:H}=e;const B=(0,ct.v9)((e=>(0,ao.Nw)(e)))&&"my-posts"===E&&"unpublished"===i.status,W=m(i),{lineCount:F,displayFooterIcons:G}=s,U=W||i.isPinned,z=(0,rn.OL)(t),j=(0,rn.$b)(t),V=!p,K=f&&!z,q=it()(nl.Z.container,nl.Z.proGallery,P&&nl.Z.isRTL,nl.Z[t],il[r],V&&nl.Z.withoutFooter,l,"blog-text-color","blog-card-background-color","blog-card-border-color","post-list-item",!y&&!(0,rn.Sp)(t)&&"blog-hover-container",!(0,rn.Sp)(t)&&v("hover-container"),v("border-color","post-container",(0,fa.Wv)(t,"background-color"))),X=it()(nl.Z.contentWrapper,nl.Z[t],P&&il.isRTL,!y&&(0,rn.Sp)(t)&&nl.Z.withBackground,V&&nl.Z.withoutFooter,"post-list-item-wrapper",(0,rn.Sp)(t)&&v("overlay-background-color"),v("description-font",(0,fa.Wv)(t,"description-color"),(0,fa.Wv)(t,"description-fill"))),$=it()(nl.Z.textWrapper,{[v("link-hashtag-hover-color")]:!B,[nl.Z.fadeout]:I||O},nl.Z[t],A&&nl.Z.withCategoryLabel),Y=it()(nl.Z.titleWrapper,nl.Z.proGallery,nl.Z[t],W?nl.Z.withShowMoreButton:nl.Z.withoutShowMoreButton,"has-custom-focus",nl.Z.customFocus),Q=it()(nl.Z.excerptLink,nl.Z.textWrapper,nl.Z.proGallery,nl.Z[t],W?nl.Z.withShowMoreButton:nl.Z.withoutShowMoreButton),J=it()(nl.Z.title,a,nl.Z[t],V&&nl.Z.withoutFooter,!K&&V&&nl.Z.withoutBottomMargin,!K&&nl.Z.withoutDescription,i.isPinned&&nl.Z.withIcons,W?nl.Z.withShowMoreButton:nl.Z.withoutShowMoreButton),ee=it()(nl.Z.content,nl.Z[t],V&&nl.Z.withoutFooter,u,v("description-style-font"),il.content),te=it()(nl.Z.headerWrapper,l,v("description-font"),il.headerContainer),re=it()(v("description-font",(0,fa.Wv)(t,"description-color"))),ie=L?wd(c):Cd(R),ne=!y||T?_d(d):Ed(N),oe={background:Ja(i)&&(0,rn.Sp)(t)?"transparent":void 0,borderWidth:0,"--wix-blog-inline-padding":(0,ae.isNumber)(b)?b+"px":void 0};z&&(oe.background="transparent",oe.paddingTop="12px",oe.paddingBottom="12px",C===Un?oe.marginLeft="14px":oe.marginRight="14px");const se=function(e,t,r){return void 0===r&&(r=!1),!t&&r?Id:(0,ae.isNumber)(e)?{paddingLeft:e,paddingRight:e,...r&&{left:0,right:0}}:{}},le=o().createElement(Vc,{className:te,post:i,showMoreButton:W,hideAuthorBadge:S,showProfileImage:!(0,rn.Sp)(t),style:Pd(h),type:t,isProGallery:!0,alignment:r,visibleActions:M}),ue=()=>A&&o().createElement(iu,{className:it()(il.categoryLabel,nl.Z.categoryLabelWrapper),post:i,postListLayout:t});!(0,ae.get)(i,"coverImage.shouldRender")&&j&&(C===Un&&(oe.paddingLeft=2*_.itemBorderWidth+"px"),C===zn&&(oe.paddingRight=2*_.itemBorderWidth+"px"));const ce=()=>o().createElement("div",{style:ie,className:it()(J,il.textAlign),"data-hook":"post-list-item__title"},o().createElement(Sd,{type:t,title:i.title,style:ie,lineCount:F.title,titleLineCount:O,showCategoryLabel:A,layoutSidesPadding:b,isHoverDisabled:B}),!z&&he()),de=()=>o().createElement("div",{style:ne,className:it()(ee,il.textAlign),"data-hook":"post-description"},o().createElement(yd,{post:i,lineCount:F.description,descriptionLineCount:I})),he=()=>k&&H?o().createElement(ad,{className:it()(nl.Z.rating,nl.Z[E],nl.Z[t],il.rating,{[nl.Z.withoutFooter]:V,[nl.Z.withTextOnImageStyles]:(0,rn.Sp)(t)}),rating:Z,count:H,layout:D?sd.with_range:sd.count_only}):null;return o().createElement("article",{className:it()(q,nl.Z.forceRelative),style:oe,"data-hook":"post-list-item"},o().createElement("div",{style:se(b,(0,rn.Sp)(t)),className:X},!z&&(w&&U||g)&&le,!z&&ue(),o().createElement("div",{className:$},B?ce():o().createElement(sl,{postLink:B?null:i.link,postPath:i.slug,className:Y},ce()),K&&(F.description||I)?B?de():o().createElement("div",{className:Q,onClick:()=>x(i.slug)},de()):null),z&&ue(),z&&he(),z&&le,p&&o().createElement("div",{style:se(b,(0,rn.Sp)(t),!0),className:it()(nl.Z.footer,nl.Z[t],nl.Z.withoutCover,nl.Z[E])},!z&&o().createElement(Gu.QM,{className:it()(nl.Z.separator,nl.Z[t])}),o().createElement("div",{style:Pd(h)},o().createElement(Jl,{type:t,post:i,onLikeClick:n,displayIcons:G,className:re,commentClassName:it()(v("link-hashtag-hover-color"))})))))};Od.defaultProps={isMetadataFooterVisible:!0,isMetadataHeaderVisible:!0,canSeeMoreButton:()=>!1};const xd=(0,ae.flowRight)(wa,_a,as,oo.Z,so,ba,(0,ct.$j)(((e,t,r)=>{const i=(0,ut.X2)(e),n=(0,lr.jl)(e,i);return{isRTL:i,isFeedMoreActionsFixEnabled:(0,qn.X)(e,An.f),shouldUsePostListMobileDescriptionFontSize:(0,na.xz)(e),shouldUsePostListMobileTitleFontSize:(0,na.fd)(e),post:t.post||za(e,t.postId),descriptionLineCount:(0,lr.Qq)({state:e}),titleLineCount:(0,lr.m8)({state:e}),navigateProGalleryWithinPostPage:r.navigateProGalleryWithinPostPage,alignment:el(n,i),postAverageRating:tl(e,(0,gn.F)(t.post)),postTotalRatings:rl(e,(0,gn.F)(t.post))}})))(Od),Ad="Bzea4H",Td=(e,t,r)=>{const i=t.containerWidth-r.width,n=-(i>0?r.width:r.width-1+i),o={gallerySizeType:Nn,gallerySizePx:t.layoutPostSize,imageMargin:0===t.layoutSpacing?n:t.layoutSpacing,enableInfiniteScroll:!0,allowTitle:!0,allowContextMenu:!0,overlayAnimation:kn,imageHoverAnimation:Dn,imageLoadingMode:Zn,imageInfoType:"ATTACHED_BACKGROUND",textsHorizontalPadding:-30,itemBorderWidth:r.width,itemBorderColor:r.color,isRTL:t.isRTL,videoPlay:t.videoSettings.play,itemClick:"nothing",videoSound:t.videoSettings.sound,showVideoPlayButton:t.videoSettings.showPlayButton,videoLoop:t.videoSettings.loop,videoSpeed:t.videoSettings.playbackSpeed,groupTypes:1},s=t.layoutCardsRowType===mn.rc.ItemsPerRow&&t.layoutPostsPerRow?{gridStyle:1,numberOfImagesPerRow:t.layoutPostsPerRow}:{},a=""+t.layoutImageCropType===mn.pI.Max?Wn:Hn,l=((e,t,r)=>t.hideCoverImage&&t.layoutAutoHeightEnabled?99:""+r!==mn.pI.Max?t.layoutImageRatio:(0,rn.rf)(e)?4/3:16/9)(e,t,t.layoutImageCropType),u=t.layoutImageResizingMode===mn.LS.Fixed?{textBoxWidth:t.layoutPostSize-t.layoutImageWidth,calculateTextBoxWidthMode:Vn}:{textBoxWidthPercent:Math.abs(t.layoutImageProportions-100),calculateTextBoxWidthMode:Kn};switch(e){case rn.Ar.PgTextOnImageSmall:case rn.Ar.PgTextOnImageMedium:case rn.Ar.PgTextOnImageLarge:return{...o,...s,galleryLayout:2,placeGroupsLtr:!0,cubeImages:!0,cubeType:Hn,cubeRatio:l,titlePlacement:Fn,hoveringBehaviour:Rn};case rn.Ar.PgSideBySide:case rn.Ar.PgSideBySideRight:return{...o,...u,galleryLayout:2,placeGroupsLtr:!0,cubeType:a,cubeRatio:l,hoveringBehaviour:Mn,titlePlacement:t.textBoxAlignment,gridStyle:1,numberOfImagesPerRow:1};case rn.Ar.PgCardMedium:return{...o,...s,galleryLayout:1,isVertical:!0,cubeImages:!0,calculateTextBoxHeightMode:jn,textBoxHeight:t.layoutContentHeight,textsVerticalPadding:-15,titlePlacement:Gn,hoveringBehaviour:Mn};case rn.Ar.PgOneColumn:return{...o,galleryLayout:2,placeGroupsLtr:!0,isVertical:!0,cubeImages:!0,cubeType:Bn,cubeRatio:l,calculateTextBoxHeightMode:jn,textBoxHeight:t.layoutContentHeight,textsVerticalPadding:-15,titlePlacement:Gn,hoveringBehaviour:Mn};case rn.Ar.Slider:return{...o,galleryLayout:5,isVertical:!0,cubeImages:!0,cubeType:a,cubeRatio:l,showArrows:t.showArrows,slideshowInfoSize:t.layoutContentHeight,arrowsSize:t.arrowsSize,isAutoSlideshow:t.autoSlide,autoSlideshowInterval:t.pauseTime,autoSlideshowType:"interval",arrowsPosition:t.arrowsPosition,arrowsColor:t.arrowsColor.value,slideshowLoop:t.loop,layoutParams:{navigationArrows:{verticalAlignment:"IMAGE_CENTER"}}};case rn.Ar.List:case rn.Ar.ListMedium:case rn.Ar.ListLarge:return{...o,...s,...u,galleryLayout:2,placeGroupsLtr:!0,isVertical:!0,cubeImages:!0,numberOfImagesPerRow:1,cubeType:a,cubeRatio:l,hoveringBehaviour:Mn,titlePlacement:"SHOW_BELOW,"+t.textBoxAlignment,textBoxHeight:t.layoutContentHeight,calculateTextBoxHeightMode:jn};case rn.Ar.PgGrid:case rn.Ar.PgGridIntermediate:case rn.Ar.PgGridLarge:default:return{...o,...s,galleryLayout:2,placeGroupsLtr:!0,isVertical:!0,cubeImages:!0,cubeType:a,cubeRatio:l,calculateTextBoxHeightMode:jn,textBoxHeight:t.layoutContentHeight,textsVerticalPadding:-15,titlePlacement:Gn,hoveringBehaviour:Mn}}};r(73561);var Ld=r(12526),Md=r(75394),Rd=r.n(Md);const Nd=({pathname:e,videoHost:t})=>Rd()(t)(e);var kd,Dd;!function(e){e.PARAGRAPH="PARAGRAPH",e.TEXT="TEXT",e.HEADING="HEADING",e.BULLETED_LIST="BULLETED_LIST",e.ORDERED_LIST="ORDERED_LIST",e.LIST_ITEM="LIST_ITEM",e.BLOCKQUOTE="BLOCKQUOTE",e.CODE_BLOCK="CODE_BLOCK",e.VIDEO="VIDEO",e.DIVIDER="DIVIDER",e.FILE="FILE",e.GALLERY="GALLERY",e.GIF="GIF",e.HTML="HTML",e.IMAGE="IMAGE",e.LINK_PREVIEW="LINK_PREVIEW",e.MAP="MAP",e.POLL="POLL",e.APP_EMBED="APP_EMBED",e.BUTTON="BUTTON",e.COLLAPSIBLE_LIST="COLLAPSIBLE_LIST",e.TABLE="TABLE",e.EMBED="EMBED",e.COLLAPSIBLE_ITEM="COLLAPSIBLE_ITEM",e.COLLAPSIBLE_ITEM_TITLE="COLLAPSIBLE_ITEM_TITLE",e.COLLAPSIBLE_ITEM_BODY="COLLAPSIBLE_ITEM_BODY",e.TABLE_CELL="TABLE_CELL",e.TABLE_ROW="TABLE_ROW",e.EXTERNAL="EXTERNAL",e.AUDIO="AUDIO",e.UNRECOGNIZED="UNRECOGNIZED"}(kd||(kd={})),function(e){e.BOLD="BOLD",e.ITALIC="ITALIC",e.UNDERLINE="UNDERLINE",e.SPOILER="SPOILER",e.ANCHOR="ANCHOR",e.MENTION="MENTION",e.LINK="LINK",e.COLOR="COLOR",e.FONT_SIZE="FONT_SIZE",e.EXTERNAL="EXTERNAL",e.UNRECOGNIZED="UNRECOGNIZED"}(Dd||(Dd={}));const Zd=(e,t,r)=>{var i,n,o,s,a,l,u,c;const d=(null!==(i=e.nodes)&&void 0!==i?i:[]).find((e=>e.type===kd.VIDEO));if(null==d?void 0:d.videoData){const e=d.videoData.thumbnail||{},i=(null===(o=null===(n=d.videoData.video)||void 0===n?void 0:n.src)||void 0===o?void 0:o.id)?Nd({videoHost:r,pathname:d.videoData.video.src.id}):null===(a=null===(s=d.videoData.video)||void 0===s?void 0:s.src)||void 0===a?void 0:a.url;if(null===(l=e.src)||void 0===l?void 0:l.id){const r=ac({pathname:(null===(u=e.src)||void 0===u?void 0:u.id)||"",width:e.width,height:e.height,imageHost:t});return{thumbnail_url:r.url,thumbnail_height:r.height,thumbnail_width:r.width,video_url:i}}return{thumbnail_url:null===(c=e.src)||void 0===c?void 0:c.url,thumbnail_height:e.height,thumbnail_width:e.width,video_url:i}}},Hd=e=>{var t,r,i,n,o,s,a,l,u,c,d,h,p,g,m,f,y,v,b,S,P,w,_,C,E,I,O,x,A;const T=null!==(t=e.nodes)&&void 0!==t?t:[],L=T.find((e=>e.type===kd.IMAGE));if(null==L?void 0:L.imageData)return{id:(null===(i=null===(r=L.imageData.image)||void 0===r?void 0:r.src)||void 0===i?void 0:i.id)||(null===(o=null===(n=L.imageData.image)||void 0===n?void 0:n.src)||void 0===o?void 0:o.url),file_name:(null===(a=null===(s=L.imageData.image)||void 0===s?void 0:s.src)||void 0===a?void 0:a.id)||(null===(u=null===(l=L.imageData.image)||void 0===l?void 0:l.src)||void 0===u?void 0:u.url),width:null===(c=L.imageData.image)||void 0===c?void 0:c.width,height:null===(d=L.imageData.image)||void 0===d?void 0:d.height};const M=T.find((e=>e.type===kd.GALLERY));if(null==M?void 0:M.galleryData){const e=null===(p=null===(h=M.galleryData)||void 0===h?void 0:h.items)||void 0===p?void 0:p[0];if(e)return{id:(null===(f=null===(m=null===(g=e.image)||void 0===g?void 0:g.media)||void 0===m?void 0:m.src)||void 0===f?void 0:f.id)||(null===(b=null===(v=null===(y=e.image)||void 0===y?void 0:y.media)||void 0===v?void 0:v.src)||void 0===b?void 0:b.url),file_name:(null===(w=null===(P=null===(S=e.image)||void 0===S?void 0:S.media)||void 0===P?void 0:P.src)||void 0===w?void 0:w.id)||(null===(E=null===(C=null===(_=e.image)||void 0===_?void 0:_.media)||void 0===C?void 0:C.src)||void 0===E?void 0:E.url),width:null===(O=null===(I=e.image)||void 0===I?void 0:I.media)||void 0===O?void 0:O.width,height:null===(A=null===(x=e.image)||void 0===x?void 0:x.media)||void 0===A?void 0:A.height}}},Bd=(e,t)=>({resizeThumbnail:(t,r,i)=>ac({pathname:t,width:r,height:i,imageHost:e}),getVideoUrl:e=>Nd({pathname:e,videoHost:t})}),Wd=(e,t,r)=>{var i,n;return t&&r&&e.content?(n=e.content)&&"nodes"in n?((e,t,r)=>{const i=(0,Ld.getResolvedCoverImage)(e);if(i)return i;let{imageMetadata:n,videoMetadata:o,isCustom:s,isEnabled:a}=(0,Ld.getCustomCoverImage)(e);return n||(n=Hd(e.content)),n||(o=Zd(e.content,t,r)),{shouldRender:Boolean(n||o)&&a,imageMetadata:n,videoMetadata:o,src:n||(0,ae.get)(o,"thumbnail_url"),isEnabled:a,isCustom:s}})({content:e.content},t,r):(0,Ld.getPostCover)(e,Bd(t,r)):null!==(i=null==e?void 0:e.coverImage)&&void 0!==i?i:{}},Fd="https://static.wixstatic.com/media/",Gd=e=>/(^https?)|(^data)|(^blob)/.test(e),Ud=(e,t,r,i,n,o,s)=>{t=t||"",(o=o||{}).quality>0&&(o.quality=Math.min(90,o.quality));const a={x:50,y:50};if(s&&s[0]>=0&&s[1]>=0&&(a.x=Math.round(100*s[0]),a.y=Math.round(100*s[1])),!0===o.allowUsm&&o.usm?(o.usm.usm_a=Math.min(5,Math.max(0,o.usm.usm_a||0)),o.usm.usm_r=Math.min(128,Math.max(0,o.usm.usm_r||0)),o.usm.usm_t=Math.min(1,Math.max(0,o.usm.usm_t||0))):o.usm={usm_a:0,usm_r:0,usm_t:0},!Gd(t)||t.indexOf("//static.wixstatic.com")>=0){const s="fit"===r?ec.sdk.getScaleToFitImageURL:ec.sdk.getScaleToFillImageURL,l={};o.quality>0&&(l.quality=o.quality),o.blur>0&&(l.filters={blur:o.blur}),a&&(l.focalPoint=a),o&&o.usm&&(l.unsharpMask={radius:parseFloat(o.usm.usm_r),amount:parseFloat(o.usm.usm_a),threshold:parseFloat(o.usm.usm_t)});const u=s((e=>e.replace(Fd,""))(t),e.maxWidth,e.maxHeight,i,n,l);return u}return t},zd=e=>{let{item:t,originalUrl:r,resizeMethod:i,requiredWidth:n,requiredHeight:o,sharpParams:s,focalPoint:a,encode:l}=e;const u=/\/v\d\/(fill|fit)\/w_\d*(,|%2C)h_\d*/.exec(r);return u&&u.index>0&&(r=r.substr(0,u.index)),"video"===i?((e,t,r,i)=>{let n=t;if(e.qualities&&e.qualities.length){let t="/";const r=e.qualities.filter((e=>"mp4"===e.formats[0]));for(let o=0;o=i||!r[o+1]){t+=s.quality;for(let r=0;rGd(e)?e:Fd+e)(r):Ud(t,r,i,n,o,s,a)},jd=/(?:https:\/\/static.wixstatic.com\/media\/)([\w\d.]+)(?:\/v\d\/(?:fit|fill)\/)w_(\d+)*(?:,|%2C)h_(\d+)/,Vd=(e,t,r)=>{const i=(0,gn.F)(e),n={itemId:i,metaData:{...r,alt:e.title},url:""};let{shouldRender:o,videoMetadata:s,imageMetadata:a}=Wd(e);if(t||!o)return n;var l;if(a)return"string"==typeof a&&a.startsWith(Fd)&&(a=(e=>{const t=e.match(jd);if(t){const[,e,r,i]=t;return{file_name:e,width:+r,height:+i}}return{file_name:"",height:1,width:1e4}})(a)),{itemId:i,metaData:{type:"image",height:a.height,width:a.width,alt:e.title},url:null!=(l=a.id)?l:a.file_name};if(s){const{height:t,width:r,thumbnail_height:n,thumbnail_width:o,thumbnail_url:a}=s;return{itemId:i,metaData:{type:"video",height:t||n,width:r||o,poster:{url:a,height:n,width:o},alt:e.title},url:s.video_url}}return n},Kd="_SIYmI";class qd extends n.Component{constructor(){super(...arguments),qe()(this,"isPrerenderMode",!0)}componentDidMount(){this.props.createdWithResponsiveEditor&&document.documentElement.classList.add("enable-scroll")}renderProGallery(){const{t:e,allPosts:t,borderColor:r,borderWidth:i,createdWithResponsiveEditor:n,hostWidth:s,layoutContentHeight:a,layoutImageAlignment:l,layoutImageProportions:u,layoutImageWidth:c,layoutImageResizingMode:d,layoutImageRatio:h,layoutMargins:p,layoutName:g,layoutPostSize:m,layoutCardsRowType:f,layoutPostsPerRow:y,layoutSidesPadding:v,layoutSpacing:b,layoutType:S,layoutImageCropType:P,onLikeClick:w,rootWidth:_,isRTL:C,section:E,hideAuthorBadge:I,canSeeMoreButton:O,className:x,hideCoverImage:A,layoutAutoHeightEnabled:T,isMobile:L,layoutOptions:M={},videoSettings:R,useLayoutFixerExperimentEnabled:N,useMobilePostListLayout:k,getPostClassName:D,visibleActions:Z,isSEO:H}=this.props,B=(0,rn.Vp)(S),W=[null,16/9,4/3,1,3/4,9/16,16/7][Number(h)],F=[null,zn,Un][Number(l)],G=(e=>{let{borderWidth:t,createdWithResponsiveEditor:r,hostWidth:i,isMobile:n,layoutContentHeight:o,layoutImageRatioValue:s,layoutMargins:a,layoutPostSize:l,layoutType:u,rootWidth:c,section:d,useLayoutFixerExperimentEnabled:h,useMobilePostListLayout:p}=e;const g={width:Bs({borderWidth:t,createdWithResponsiveEditor:r,hostWidth:i,isMobile:n,layoutMargins:n&&!p?0:a,layoutPostSize:l,layoutType:u,rootWidth:c,section:d,useLayoutFixerExperimentEnabled:h})};return(0,rn.Bo)(u)&&(g.height=(c-2*a)/s+o),g})({borderWidth:i,createdWithResponsiveEditor:n,isMobile:L,layoutContentHeight:a,layoutImageRatioValue:W,layoutMargins:p,layoutPostSize:m,layoutType:S,hostWidth:s,rootWidth:_,section:E,useLayoutFixerExperimentEnabled:N,useMobilePostListLayout:k}),U=Td(S,{layoutPostSize:(0,rn.Bo)(S)?s:m,layoutCardsRowType:f,layoutPostsPerRow:y,layoutSpacing:b,layoutContentHeight:a,layoutImageCropType:P,layoutImageRatio:W,textBoxAlignment:F,layoutImageProportions:u,layoutImageWidth:c,layoutImageResizingMode:d,isRTL:C,videoSettings:R,containerWidth:G.width,hideCoverImage:A,layoutAutoHeightEnabled:T,...M},{width:i,color:r});if((0,ae.isEqual)(this.options,U)||(this.options=U),t!==this.prevAllPosts||A!==this.prevHideCoverImage||S!==this.prevLayoutType||v!==this.prevLayoutSidesPadding||O!==this.prevCanSeeMoreButton||F!==this.prevTextBoxAlignment){const e=(e=>({height:1,width:1e4,...(0,rn.Vp)(e)||(0,rn.Bo)(e)?{type:"text"}:{}}))(S);this.items=t.map((t=>Vd(t,A,e))),this.postInfoRenderer=(e=>{let{allPosts:t,prevAllPosts:r,layoutType:i,layoutName:n,section:s,layoutSidesPadding:a,canSeeMoreButton:l,hideAuthorBadge:u,textBoxAlignment:c,options:d,onLikeClick:h,getPostClassName:p,visibleActions:g}=e;return(e,m)=>{if((0,rn.ut)(i)&&"SHOW_BELOW"===m){const e=it()(p("background-color"),Ad);return o().createElement("div",{className:e})}const{itemConfig:f}=(0,fa.ep)(i),y=t.find((t=>(0,gn.F)(t)===e.id))||r.find((t=>(0,gn.F)(t)===e.id));return o().createElement(xd,{itemConfig:f,type:n,postId:e.id,post:y,onLikeClick:h,galleryOptions:d,layoutSidesPadding:a,section:s,canSeeMoreButton:l,hideAuthorBadge:u,textBoxAlignment:c,visibleActions:g})}})({prevAllPosts:this.prevAllPosts||[],allPosts:t,layoutType:S,layoutName:g,section:E,layoutSidesPadding:v,canSeeMoreButton:O,hideAuthorBadge:I,textBoxAlignment:F,options:this.options,onLikeClick:w,getPostClassName:D,visibleActions:Z}),t!==this.prevAllPosts&&(this.prevAllPosts=t),this.prevHideCoverImage=A,this.prevLayoutType=S,this.prevLayoutSidesPadding=v,this.prevCanSeeMoreButton=O,this.prevTextBoxAlignment=F}const z=(()=>{try{return"undefined"!=typeof window?window:{addEventListener:(e,t)=>{Hs.addEventListener(e.toUpperCase(),t)},removeEventListener:(e,t)=>{Hs.removeEventListener(e.toUpperCase(),t)}}}catch(e){return console.error("Cannot get scrolling element",e),{}}})(),j=(e=>{let{container:t,createdWithResponsiveEditor:r,isMobile:i,layoutMargins:n,layoutPostSize:o,layoutType:s,section:a}=e;const l={"--blog-pl-common-padding-top":bs+"px","--blog-pl-common-padding-bottom":Ss+"px","--blog-pl-slider-padding-top":Ps+"px","--blog-pl-slider-padding-bottom":ws+"px","--blog-pl-header-height":_s+"px","--blog-pl-header-margin-bottom":Cs+"px","--blog-pl-footer-content-height":Es+"px","--blog-pl-footer-separator-margin":Is+"px","--blog-pl-footer-padding-top":Os+"px","--blog-pl-common-title-margin":xs+"px","--blog-pl-default-title-margin":As+"px","--blog-pl-slider-title-margin-top":Ts+"px","--blog-pl-category-label-margin-bottom":Ls+"px","--blog-pl-slider-category-label-margin-bottom":Ms+"px",height:t.height},u=(0,rn.rf)(s),c=(0,rn.Ip)(s);if((u||c)&&a!==st.AP&&(l.maxWidth=o),a!==st.WB&&a!==st.a7&&a!==st.AP||u){l.marginTop=r?20:n,l.marginBottom=r?0:n;const e=(e=>{let{layoutPGSideBySide:t,layoutPGOneColumn:r,layoutMargins:i,createdWithResponsiveEditor:n}=e;return t||r?"auto":n?0:i})({layoutPGSideBySide:u,layoutPGOneColumn:c,layoutMargins:n,createdWithResponsiveEditor:r});l.marginLeft=e,l.marginRight=e}return i&&(l.margin=0),l})({container:G,createdWithResponsiveEditor:n,isMobile:L,layoutMargins:p,layoutPostSize:m,layoutType:S,section:E}),V=this.props.domId||"pro-blog",K={customHoverRenderer:ys(U)?null:this.postInfoRenderer,customInfoRenderer:this.postInfoRenderer};this.isPrerenderMode=(e=>{let{hostWidth:t,isPrerenderMode:r,isSEO:i,rootWidth:n}=e;const o=t||n;return(isNaN(o)||""===o)&&!i&&r})({hostWidth:s,isPrerenderMode:this.isPrerenderMode,isSEO:H,rootWidth:_});const q=!this.items.some((e=>""===e.url))&&N&&this.isPrerenderMode;return o().createElement("div",{key:"pg-container","data-hook":"post-list-pro-gallery-container",style:j,className:it()("post-list-pro-gallery-"+g,{"is-mobile":L},E,L&&1===this.items.length?"post-list-pro-gallery-flat":"",F===Un?"gallery-left-align":"gallery-right-align",Kd,x)},o().createElement(on.Z,{key:"pg-posts-"+m,id:V,items:this.items,totalItemsCount:this.items.length,options:this.options,container:G,scrollingElement:z,eventsListener:(e,r)=>{if(!B&&(e=>e===Tn)(e)&&(e=>(null==e?void 0:e.clickTarget)===Ln)(r)){var i;const e=t.find((e=>(0,gn.F)(e)===r.id));if(!e.slug||null!=(i=e.coverImage)&&i.videoMetadata&&"onClick"===R.play)return;this.props.navigateProGalleryWithinPostPage(e.slug)}},viewMode:this.props.viewMode,deviceType:this.props.deviceType,customComponents:K,createMediaUrl:zd,proGalleryRegionLabel:e("pro-gallery.parent-container-aria-label"),isPrerenderMode:this.isPrerenderMode}),q?o().createElement(pn,{id:V,items:this.items,isPrerenderMode:this.isPrerenderMode,options:this.options}):null)}render(){if(!this.props.loadMore)return this.renderProGallery();const{isLoading:e,allPosts:t,entityCount:r,loadMore:i,pageStart:n}=this.props;return o().createElement(Ks,{loadMore:i,loader:o().createElement(qs.Z,null),isLoading:e,hasMore:t.length{let{section:n,layoutType:o,layoutName:s,rootWidth:a,layoutDefaults:l={}}=t;const u=(0,ae.get)(i,"dimensions.width"),c=(0,lr.rh)(e),d=c?null:(0,lr.k$)({state:e,section:n,layoutType:o,layoutName:s}),{layoutContentHeight:h,layoutImageAlignment:p,layoutImageProportions:g,layoutImageWidth:m,layoutImageResizingMode:f,layoutImageRatio:y,layoutPostSize:v,layoutSidesPadding:b,layoutImageCropType:S,layoutSpacing:P,layoutCardsRowType:w,layoutPostsPerRow:_,layoutAutoHeightEnabled:C}=(e=>{let{state:t,section:r,hostWidth:i,rootWidth:n,layoutMargins:o,layoutType:s}=e;const a=(0,lr.Ne)({state:t,section:r,layoutType:s})===mn.BZ.AUTO,l={state:t,section:r,layoutType:s};return{layoutAutoHeightEnabled:a,layoutContentHeight:a?ma(t,r,s):(0,lr.pS)(l),layoutImageAlignment:(0,lr.YN)(l),layoutImageProportions:(0,lr.Ve)(l),layoutImageWidth:(0,lr.Y$)(l),layoutImageResizingMode:(0,lr.BQ)(l),layoutImageCropType:(0,lr.wS)(l),layoutImageRatio:(0,lr.iQ)(l),layoutCardsRowType:(0,lr.sJ)(l),layoutPostsPerRow:(0,lr.df)(l),layoutPostSize:(0,lr.Jq)({state:t,hostWidth:i,rootWidth:n,layoutMargins:o,section:r,layoutType:s}),layoutSidesPadding:(0,lr.zX)(l),layoutSpacing:(0,lr.xP)(l)}})({state:e,rootWidth:a,hostWidth:u,layoutMargins:d,section:n,layoutType:o});return{scroll:e.scroll,isPostListFullWidthEnabled:(0,lr.B6)(e),onLikeClick:r.incrementPostLikeCount,postPageSectionUrl:Gs(e),hostWidth:u,navigateProGalleryWithinPostPage:r.navigateProGalleryWithinPostPage,borderColor:(0,lr.eL)({state:e,section:n}),createdWithResponsiveEditor:c,isRTL:(0,ut.X2)(e),deviceType:(0,ut.W7)(e)?sn.Z.deviceType.MOBILE:sn.Z.deviceType.DESKTOP,layoutContentHeight:(0,ae.isUndefined)(h)?l.contentHeight:h,layoutImageAlignment:(0,ae.isUndefined)(p)?l.imageAlignment:p,layoutImageProportions:(0,ae.isUndefined)(g)?l.imageProportions:g,layoutImageWidth:(0,ae.isUndefined)(m)?l.layoutImageWidth:m,layoutImageResizingMode:(0,ae.isUndefined)(f)?l.layoutImageResizingMode:f,layoutImageRatio:(0,ae.isUndefined)(y)?l.imageRatio:y,layoutImageCropType:(0,ae.isUndefined)(S)?l.imageCropType:S,layoutMargins:(0,ae.isUndefined)(d)?l.margins:d,layoutPostSize:(0,ae.isUndefined)(v)?l.layoutPostSize:v,layoutCardsRowType:(0,ae.isUndefined)(w)?l.layoutCardsRowType:w,layoutPostsPerRow:(0,ae.isUndefined)(_)?l.layoutPostsPerRow:_,layoutAutoHeightEnabled:(0,ae.isUndefined)(C)?l.layoutAutoHeightEnabled:C,layoutSidesPadding:(0,ae.isUndefined)(b)?l.sidesPadding:b,layoutSpacing:(0,ae.isUndefined)(P)?l.spacing:P,registerToScroll:i.registerToScroll,viewMode:vs(e,a),videoSettings:xn(e,n),useMobilePostListLayout:(0,lr.wl)(e),isSSR:(0,ut.yF)(e),isSEO:(0,ut.D9)(e),rootWidth:a,isMobile:(0,ut.W7)(e)}})),so,oo.Z,Xn({useLayoutFixerExperimentEnabled:An.SN}))(qd),$d={page:1,pageSize:10,entityCount:0,showPosition:!1,component:e=>{let{children:t,...r}=e;return o().createElement("div",(0,ae.omit)(r,["page","isDisabled","isActive"]),t)}};let Yd=function(e){return e.FIRST="first",e.LAST="last",e.NEXT="next",e.PREVIOUS="previous",e.PAGE="page",e}({});const Qd={page:"KhVdjt",previous:"acbUIp",first:"IeY3vx",next:"gwgQCb",last:"lfi41p",active:"sI4Nnn",large:"wR7lgz",arrow:"RcfyI6",inner:"ixAZGX",container:"ynW8KF",position:"fOICak",withPosition:"IZ6Wrl",disabled:"BCQZoR"},Jd=e=>{let{children:t,label:r,arrowClass:i,disabledClass:n,type:s,state:a,showPosition:l,component:u}=e;const c={[Yd.FIRST]:()=>({isEnabled:a.currentPage>(l?1:3),isVisible:a.lastPage>(l?2:5),pageToOpen:1}),[Yd.PREVIOUS]:()=>({isEnabled:a.currentPage>1,isVisible:!0,pageToOpen:a.currentPage-1}),[Yd.NEXT]:()=>({isEnabled:a.currentPage({isEnabled:a.currentPage(l?2:5),pageToOpen:a.lastPage})},{isVisible:d,isEnabled:h,pageToOpen:p}=c[s]();if(!d)return null;const g=h?a.getButtonEventHandlers(p,s):void 0;return o().createElement(u,kt()({},g,{page:p,isDisabled:!h,className:it()(Qd[s],i,!h&&n),"aria-label":r,"data-hook":"pagination__"+s}),t)};const eh=e=>{let{state:t,component:r,activeClass:i,innerClass:n}=e;const{t:s}=(0,cs.$)(),a=function(e){const t=Math.floor(2.5);let r=1,i=5;e.lastPage<5?i=e.lastPage:e.currentPage+t+1>e.lastPage?(r=e.lastPage-2*t,i=e.lastPage):e.currentPage>t+1&&(r=e.currentPage-t,i=e.currentPage+t);return(0,ae.range)(r,i+1)}(t);return o().createElement(o().Fragment,null,a.map((e=>{const a=e===t.currentPage,l=it()(Qd.page,n,{"blog-button-color":a},i?{[i]:a}:void 0),u=a?void 0:t.getButtonEventHandlers(e,Yd.PAGE);return o().createElement(r,kt()({},u,{key:e,page:e,isActive:a,className:l,"aria-label":s("pagination.page",{page:e}),"data-hook":"pagination__"+e}),e)})))},th=e=>{let{className:t,state:r}=e;return o().createElement("div",{className:t},r.currentPage,"/",r.lastPage)},rh=e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",style:{fillRule:"evenodd"}},e),o().createElement("path",{d:"M 1.503579,6.000003 6.933844,0.824205 c 0.08821,-0.08407 0.08821,-0.220384 0,-0.304458 L 6.454703,0.063059 c -0.08821,-0.08407 -0.23122,-0.08407 -0.319427,0 L 0.066156,5.847774 C 0.022052,5.889811 0,5.944907 0,6.000003 c 0,0.0551 0.02205,0.110193 0.06616,0.152229 l 6.06912,5.784715 c 0.08821,0.08407 0.23122,0.08407 0.319427,0 l 0.479141,-0.456688 c 0.08821,-0.08407 0.08821,-0.220383 0,-0.304459 z"})),ih=e=>o().createElement("svg",kt()({xmlns:"http://www.w3.org/2000/svg",width:"7",height:"12",viewBox:"0 0 7 12",style:{fillRule:"evenodd"}},e),o().createElement("path",{d:"m 5.4964265,6.0000035 -5.430265,5.1757985 c -0.08821,0.08407 -0.08821,0.220384 0,0.304458 l 0.479141,0.456688 c 0.08821,0.08407 0.23122,0.08407 0.319427,0 l 6.06912,-5.7847155 c 0.044104,-0.042037 0.066156,-0.097133 0.066156,-0.152229 0,-0.0551 -0.02205,-0.110193 -0.06616,-0.15223 l -6.06912,-5.784715 c -0.08821,-0.08407 -0.23122,-0.08407 -0.319427,0 l -0.479141,0.456688 c -0.08821,0.08407 -0.08821,0.220385 0,0.304459 z"}));const nh="specs.wixBlog.LimitPaginationTo100Pages";const oh=(e,t=1)=>Math.ceil(e/t),sh=(e,t)=>r=>{r.keyCode===e&&t(r)};const ah=e=>{const t=function(e){let{page:t=$d.page,entityCount:r=$d.entityCount,pageSize:i=$d.pageSize,onChange:o}=e;const s=(0,ct.v9)((e=>(0,qn.X)(e,nh)));let a=r;if(s){const e=100*i;a=e>r?r:e}const[l,u]=(0,n.useState)({currentPage:t,lastPage:oh(a,i)});(0,n.useEffect)((()=>{u({currentPage:t,lastPage:oh(a,i)})}),[t,a,i]);const c=(e,t)=>r=>{r.preventDefault(),u((t=>({...t,currentPage:e}))),null==o||o({page:e,from:(e-1)*i,to:e*i,buttonType:t})};return{currentPage:l.currentPage,lastPage:l.lastPage,getButtonEventHandlers:(e,t)=>{var r;if(o)return{onClick:c(e,t),onKeyUp:(r=c,e=>sh(13,r)(e)),tabIndex:0}}}}(e),{t:r}=(0,cs.$)(),i=function(){const e=(0,ct.v9)(ut.X2),t=t=>e?"right"===t?rh:ih:"right"===t?ih:rh;return{Left:t("left"),Right:t("right")}}(),{entityCount:s=$d.entityCount,showPosition:a=$d.showPosition,component:l=$d.component,pageSize:u=$d.pageSize,arrowFillClass:c="blog-icon-fill",activeClass:d,className:h,pageClass:p,positionClass:g}=e;if(s<=u)return null;const m={state:t,showPosition:a,arrowClass:Qd.arrow,disabledClass:Qd.disabled,component:l};return o().createElement("div",{className:it()(Qd.container,a&&Qd.withPosition,h),"aria-live":"polite"},o().createElement(Jd,kt()({},m,{label:r("pagination.first-page"),type:Yd.FIRST}),o().createElement(i.Left,{className:c}),o().createElement(i.Left,{className:c})),o().createElement(Jd,kt()({},m,{label:r("pagination.previous-page"),type:Yd.PREVIOUS}),o().createElement(i.Left,{className:c})),a?o().createElement(th,{state:t,className:it()(Qd.position,g)}):o().createElement(eh,{activeClass:it()(Qd.active,"blog-button-color",d),component:l,innerClass:it()(Qd.page,p),state:t}),o().createElement(Jd,kt()({},m,{label:r("pagination.next-page"),type:Yd.NEXT}),o().createElement(i.Right,{className:c})),o().createElement(Jd,kt()({},m,{label:r("pagination.last-page"),type:Yd.LAST}),o().createElement(i.Right,{className:c}),o().createElement(i.Right,{className:c})))},lh=(0,ya.default)((function(e,t){void 0===t&&(t=()=>{});return(0,ct.$j)(((e,t,r)=>({navigateInPreview:r.navigateInPreview})))((r=>{let{children:i,page:n,isDisabled:s,isActive:a,navigateInPreview:l,...u}=r;if(a||s)return o().createElement("div",u,i);const c=e(n);return o().createElement("a",kt()({href:c,onClick:e=>t({event:e,pageUrl:c,navigateInPreview:l})},u),i)}))})),uh="aq_u4p",ch="HcArW_",dh=e=>{var t,r;const i=(0,Qn.Z)({section:e.section}),{rootWidth:n}=Dt(),s=(0,rn.Ub)(i.layoutType),a=e.useDescriptionColor||!(0,rn.Vp)(i.layoutType),l=it()(uh,s&&ch,s&&"blog-post-"+i.section+"-background-color",a?"blog-post-"+i.section+"-description-color":"blog-text-color",e.containerClassName),u=a?"blog-post-"+i.section+"-description-fill":void 0,c="blog-post-"+i.section+"-description-style-font";return o().createElement("div",{className:l},o().createElement(ah,{activeClass:e.activeClass,page:e.page,pageSize:e.pageSize,entityCount:e.entityCount,showPosition:(s||n<375)&&(null==(t=e.showPagination)||t),arrowFillClass:u,onChange:e.onChange,pageClass:c,positionClass:c,component:lh(null!=(r=e.createPageUrl)?r:()=>"",e.handleNavigation)}))};var hh=r(88520);const ph=e=>e.isLoading,gh=function(e,t,r){return void 0===r&&(r=""),Boolean(r?(0,ae.get)(ph(e),[t,r]):ph(e)[t])},mh=e=>e.postCount;var fh=r(14826);const yh=e=>{const t=(0,$n.$U)({state:e,key:"style.numbers."+tn.Ss.postListWidgetPaginationType.key,fallback:tn.Ss.postListWidgetPaginationType.defaultValue}),r=Number(t)===Number(tn.P8.Paginated)?tn.Ss.postListWidgetPostsPerPage:tn.Ss.postListWidgetEntityCount;return(0,$n.vy)(e,r.key,r.defaultValue)},vh=e=>e.wixData,bh=(0,fn.P1)([vh],(e=>(0,ae.get)(e,"categoryId",null))),Sh=(0,fn.P1)([vh],(e=>(0,ae.get)(e,"tagId",null)));const Ph=e=>(0,ut.W7)(e)?1:(0,ae.get)((0,$n.hO)(e),eo.kJ,1),wh=(0,ct.$j)(((e,t)=>{let{borderWidth:r,applyFeedDesign:i}=t;return{borderWidth:i?r:Ph(e)}})),_h=(0,ae.flowRight)(so,oo.Z,wh,(0,to.Z)("WithPostBorderWidth")),Ch="arh2qf",Eh="cJscj1",Ih="cTdFFO",Oh="clf9mN",xh="wdbmEY",Ah="nAaNon",Th=(0,ae.flowRight)(Xn({unifyEmptyStatesExperimentEnabled:An.XQ}),wa,oo.Z,_h)((e=>{let{title:t,content:r,style:i={},className:n,children:s,titleFontClassName:a,contentFontClassName:l,borderWidth:u,isLayoutTextOnImage:c=!1,titleClassName:d,unifyEmptyStatesExperimentEnabled:h,getPostClassName:p}=e;const g=it()(Ch,l,n,c?Ah:["blog-card-background-color","blog-text-color"],"blog-card-border-color",null==p?void 0:p("border-color","post-container","background-color")),m=it()(a,d,h&&(null==p?void 0:p("title-font","title-color"))),f=it()(Ih,h&&(null==p?void 0:p("description-font","description-color")));return o().createElement("div",{"data-hook":"empty-state-container",className:g,style:{borderWidth:u,...i}},o().createElement("div",{className:m,"data-hook":"empty-states__title"},o().createElement("div",{tabIndex:0,className:Eh},t)),o().createElement("div",{className:f},o().createElement("div",{className:Oh},r)),s&&o().createElement("div",{className:xh},s))})),Lh=e=>(0,ae.get)(e,"locale.query");const Mh=()=>(0,ct.v9)((e=>{const t=(0,qn.X)(e,An.XQ),r=(0,ut.f3)(e),i=(0,ut.hz)(e),n=Boolean(bh(e)||Sh(e)||(0,$n.$U)({state:e,key:"style.booleans."+tn.Ss.postListWidgetIsFeatured.key}));return{isMultilingual:Boolean(Lh(e)),showFilterWarning:r&&n,showUnifiedStateText:t&&i}})),Rh=e=>{let{...t}=e;const{t:r}=(0,cs.$)(),{showUnifiedStateText:i,isMultilingual:n,showFilterWarning:s}=Mh();return o().createElement(Th,kt()({title:r(i?"no-posts-feed.nothing-to-show":s?"no-posts.filtered.title":n?"no-posts-feed.no-published-posts-multilingual":"no-posts-feed.on-the-way"),content:r(i?"no-posts.publish-posts-to-see-them":s?"no-posts.filtered.subtitle":"no-posts-feed.stay-tuned")},t))},Nh="zVjbZW",kh=()=>!1;const Dh=()=>{const[e,t]=(0,n.useState)(1),r=(0,ct.ol)(),i=function(){const e=(0,hh.Z)();return(0,ct.v9)(((t,r)=>{const i=(0,fh.L)({state:t,isMobile:e.isMobile}),n=(0,rn.jP)(i)||tn.Iw.layoutName,o=(0,$n.$U)({state:t,key:"style.numbers."+tn.Ss.postListWidgetPaginationType.key,fallback:tn.Ss.postListWidgetPaginationType.defaultValue}),{sliderShowArrows:s,sliderArrowsSize:a,sliderAutoSlide:l,sliderPauseTime:u,sliderArrowsPosition:c,sliderArrowsColor:d,sliderLoop:h}=(0,lr.wl)(t)?tn.HA.mobile:tn.HA.desktop;return{isPaginationEnabled:!(0,rn.Bo)(i)&&String(o)!==tn.P8.NumberOfPosts,postCount:mh(t),posts:Qa(t),layoutType:i,layoutName:n,isLoading:gh(t,"postListPosts"),componentId:r.id,pageSize:yh(t),sliderArrowsPositions:c.options,hideCoverImage:!(0,$n.$U)({state:t,key:"style.booleans."+((0,lr.w6)(t)?nn.feedWidgetStyleParams["blog-mobile-isCoverImageEnabled"].key:nn.feedWidgetStyleParams["blog-isCoverImageEnabled"].key),fallback:!0}),layoutOptions:{showArrows:(0,$n.$U)({state:t,key:"style.booleans."+s.key,fallback:s.defaultValue}),arrowsSize:(0,$n.$U)({state:t,key:"style.numbers."+a.key,fallback:a.defaultValue}),autoSlide:(0,$n.$U)({state:t,key:"style.booleans."+l.key,fallback:l.defaultValue}),pauseTime:(0,$n.$U)({state:t,key:"style.numbers."+u.key,fallback:u.defaultValue}),arrowsPosition:(0,$n.$U)({state:t,key:"style.numbers."+c.key,fallback:c.defaultValue}),arrowsColor:(0,$n.$U)({state:t,key:"style.colors."+d.key,fallback:d.defaultValue}),loop:(0,$n.$U)({state:t,key:"style.booleans."+h.key,fallback:h.defaultValue})},shouldUsePostListMobileSliderArrowColor:(0,na.MN)(t),shouldUsePostListMobileSliderBorderStyles:(0,na.Hf)(t),featuredOnly:(0,$n.$U)({state:t,key:"style.booleans."+tn.Ss.postListWidgetIsFeatured.key})}}))}(),s=(0,n.useRef)(i),a=(0,n.useRef)(i.layoutOptions);(0,n.useEffect)((()=>{i.pageSize===s.current.pageSize&&i.featuredOnly===s.current.featuredOnly&&i.isPaginationEnabled===s.current.isPaginationEnabled||(s.current=i,t(1),r.fetchPostListPostsPromisified(1))}),[r,i]),(0,n.useEffect)((()=>{(0,ae.isEqual)(a.current,i.layoutOptions)||(a.current=i.layoutOptions,r.fetchPostListPostsPromisified(e))}),[i.layoutOptions,r,e]);const l=Boolean(i.posts.length);if(!i.isLoading&&!l)return o().createElement(Rh,null);const u=it()({"mobile-slider-arrow-color":i.shouldUsePostListMobileSliderArrowColor,"mobile-slider-border-styles":i.shouldUsePostListMobileSliderBorderStyles});return o().createElement("div",{className:u},o().createElement(Xd,{className:a.current.arrowsPosition===tn.$G.OnGallery?"arrows-on-gallery":"",layoutName:i.layoutName,layoutType:i.layoutType,layoutDefaults:tn.Iw,domId:i.componentId,allPosts:i.posts,currentPagePosts:i.posts,isLoading:i.isLoading,showCreatePostAction:!1,section:st.WB,canSeeMoreButton:kh,layoutOptions:a.current,hideCoverImage:i.hideCoverImage}),i.isPaginationEnabled&&o().createElement(dh,{useDescriptionColor:!0,containerClassName:Nh,page:e,onChange:e=>{t(e.page),r.fetchPostListPostsPromisified(e.page)},pageSize:i.pageSize,section:st.WB,entityCount:i.postCount,activeClass:"blog-post-list-pagination-active"}))},Zh="sXdULV",Hh="b79EPn",Bh="c3VDPV";class Wh extends o().Component{constructor(){super(...arguments),qe()(this,"getI18nConfig",(()=>{const{language:e,translations:t}=this.props;return this.i18nConfig||(this.i18nConfig=$i(e,t)),this.i18nConfig}))}componentDidMount(){Yi()||document.documentElement.classList.add("enable-scroll"),this.props.isEditor&&this.props.createdWithResponsiveEditor&&(document.body.style.height="auto")}render(){const{padding:e,useMobileDesign:t}=this.props,r=this.getI18nConfig();return o().createElement(zt,{dataHook:"post-list-root"},o().createElement(ot,{i18n:r},o().createElement("div",{style:{padding:e},className:it()(Bh,t?Hh:Zh)},o().createElement(Dh,null),o().createElement(dt,null),o().createElement(en,null))))}}const Fh=(e=>{class t extends o().Component{constructor(){super(...arguments),qe()(this,"store",null),qe()(this,"stateVersions",null),qe()(this,"promisifiedActionsService",function(){const e={};function t(t){const r=(e=>e.promisifiedActionsResults||{})(t);Object.entries(r).forEach((t=>{let[r,{payload:i,isResolved:n}]=t;const o=e[r];o&&(n?o.resolve(i):o.reject(i),delete e[r])}))}return{usePromisifiedAction:function(r,i){return t(i),function(){for(var t=arguments.length,i=new Array(t),n=0;n{const o=Date.now()+100*Math.random().toFixed(2);e[o]={resolve:t,reject:n},r(i,o)}))}},resolvePromisifiedActions:t}}()),qe()(this,"controllerId",null),qe()(this,"getWorkerReady",(()=>(this.workerReady=this.workerReady||new Promise((e=>{this.props.isSSR?this.markWorkerAsReady=e:(e(),this.markWorkerAsReady=()=>{})})),this.workerReady))),qe()(this,"patchState",((e,t)=>{e.appSettings={...e.appSettings,colorPresets:t.style.siteColors,textPresets:t.style.siteTextPresets,style:t.style.styleParams}}))}componentDidUpdate(e){e.isSSR!==this.props.isSSR&&this.markWorkerAsReady&&this.markWorkerAsReady()}render(){const{state:t,stateVersions:r,actions:i,actionsPromisified:n,host:s,controllerId:a}=this.props;if(this.controllerId||(this.controllerId=a),this.store){const e=(e=>{let{currentState:t,currentVersions:r,newState:i,newVersions:n,currentControllerId:o,newControllerId:s}=e;return s(r[i]===n[i]&&(e[i]=t[i]),e)),{...i}):i})({currentState:this.store.getState().state,currentVersions:this.stateVersions,newState:t,newVersions:r,currentControllerId:this.controllerId,newControllerId:a});this.stateVersions=r,(0,ut.hz)(e)?(this.patchState(e,s),this.store.dispatch(ir(e)),this.store.dispatch(or(s))):(e.appSettings&&!e.appSettings.colorPresets&&this.patchState(e,s),this.store.dispatch(ir(e))),this.promisifiedActionsService.resolvePromisifiedActions(e)}else{const e=Object.keys(n).reduce(((e,r)=>(e[r]=this.promisifiedActionsService.usePromisifiedAction(n[r],t),e)),{});this.stateVersions=r,this.patchState(t,s),this.store=Yt(sr,{state:t,actions:{...i,...e,openModal:tr(i.openModal)},host:s,workerReady:this.getWorkerReady()})}return this.controllerId({language:(0,ut.G3)(e),translations:Qi(e),isEditor:(0,ut.hz)(e),createdWithResponsiveEditor:(0,lr.rh)(e),useMobileDesign:(0,lr.QX)(e),padding:(0,ut.W7)(e)&&!(0,lr.wl)(e)||(0,lr.rh)(e)?0:(0,lr.k$)({state:e,section:st.WB,layoutType:(0,ur.uE)(e,st.WB,(0,lr.wl)(e))})})))(Wh)),Gh=function(e){return(0,ae.flowRight)(Qe,tt(Ve),Je,et)(e)}(Fh);var Uh,zh=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};!function(e){e.Default="",e.OwnerAccount="owner-account"}(Uh||(Uh={}));var jh="__WIXEXP_USE_NEW_API",Vh="__WIXEXP_CONDUCTION_METHOD_",Kh="__WIXEXP_OWNER_ACCOUNT_ID_",qh="__WIXEXP_LOGGED_IN_USER_ID_";function Xh(e,t,r){var i,n;if("undefined"!=typeof self)if("function"==typeof r){if(void 0!==r(self[t]))return(i={})[e]=r(self[t]),i}else if(typeof self[t]===r)return(n={})[e]=self[t],n;return{}}var $h=function(e){return Object.keys(Uh).filter((function(t){return Uh[t]===e})).length>0?e:void 0};function Yh(e){return function(e){return e.conductionMethod===Uh.OwnerAccount&&e.siteOwnerId&&e.loggedInUserId}(e)?{forSiteOwner:{siteOwnerId:e.siteOwnerId,loggedInUserId:e.loggedInUserId}}:{}}var Qh=function(e){return"string"==typeof e&&""!==e};function Jh(e){void 0===e&&(e={});var t=e.forSiteOwner,r=e.forSiteVisitors,i=e.overrideCriteria,n="";if(["forSiteOwner","forSiteVisitors"].reduce((function(t,r){return e[r]?t+1:t}),0)>1)throw new Error('Only one of "forSiteOwner" or "forSiteVisitors" is accepted.');return t&&(n+=function(e){return Qh(e.loggedInUserId)&&Qh(e.siteOwnerId)?"&"+"requestContext.forSiteOwner.loggedInUserId=".concat(e.loggedInUserId,"&")+"requestContext.forSiteOwner.siteOwnerId=".concat(e.siteOwnerId):""}(t)),r&&(n+=function(e){return Qh(e.visitorId)&&Qh(e.siteOwnerId)?"&"+"requestContext.forSiteVisitors.visitorId=".concat(e.visitorId,"&")+"requestContext.forSiteVisitors.siteOwnerId=".concat(e.siteOwnerId):""}(r)),i&&(n+=function(e){return Qh(e.entityId)?"&requestContext.overrideCriteria.entityId=".concat(e.entityId):""}(i)),n}function ep(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}var tp={conductAllInScope:"/_api/wix-laboratory-server/v1/laboratory/platform/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/v1/laboratory/platform/conductExperiment"},rp={conductAllInScope:"/_api/wix-laboratory-server/laboratory/conductAllInScope",conductExperiment:"/_api/wix-laboratory-server/laboratory/conductExperiment"};function ip(e,t){return-1!==e.indexOf(t?tp.conductAllInScope:rp.conductAllInScope)}var np=function(e,t,r){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===r&&(r=!1),r?"".concat(tp.conductExperiment,"?key=").concat(encodeURIComponent(e),"&fallbackValue=").concat(encodeURIComponent(t)):"".concat(rp.conductExperiment,"?key=").concat(encodeURIComponent(e),"&fallback=").concat(encodeURIComponent(t))};function op(e,t,r){var i="".concat(np(t,"",r));return e.includes(i)}var sp=function(){function e(){this.urlMap=new Map,this.pendingUrlMap=new Map}return e.prototype.addUrlRequest=function(e,t){return(0,f.__awaiter)(this,void 0,void 0,(function(){var r=this;return(0,f.__generator)(this,(function(i){switch(i.label){case 0:return this.pendingUrlMap.set(e,t),[4,t.then((function(t){return r.addUrlResponse(e,t)}))];case 1:return i.sent(),[2]}}))}))},e.prototype.addUrlResponse=function(e,t){this.urlMap.set(e,t)},e.prototype.getUrlResponse=function(e){return this.urlMap.get(e)},e.prototype.getUrlRequest=function(e){return this.pendingUrlMap.get(e)},e.prototype.getExperimentValue=function(e,t){var r,i;try{for(var n=(0,f.__values)(this.urlMap.keys()),o=n.next();!o.done;o=n.next()){var s=o.value;if(op(s,e,t))return this.urlMap.get(s);if(ip(s,t)){var a=ep(this.urlMap.get(s));if("object"==typeof a&&e in a)return a[e]}}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}},e}();!function(){function e(){}e.prototype.addUrlRequest=function(){},e.prototype.addUrlResponse=function(){},e.prototype.getUrlResponse=function(){},e.prototype.getUrlRequest=function(){},e.prototype.getExperimentValue=function(){}}();function ap(){return void 0===self.experimentsCacheV2&&(self.experimentsCacheV2=new sp),self.experimentsCacheV2}var lp=r(21666);var up=function(){function e(e){var t;this.experiments=null!==(t=e.experiments)&&void 0!==t?t:{}}return e.prototype.get=function(e){return this.experiments[e]},e.prototype.enabled=function(e){return"true"===this.get(e)},e.prototype.pending=function(){return!1},e.prototype.ready=function(){return Promise.resolve()},e.prototype.all=function(){return this.experiments},e}(),cp=function(){},dp=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,t)||this,i=(0,f.__assign)((0,f.__assign)((0,f.__assign)((0,f.__assign)({},Xh("useNewApi",jh,"boolean")),Xh("conductionMethod",Vh,$h)),Xh("siteOwnerId",Kh,"string")),Xh("loggedInUserId",qh,"string"));return r.useNewApi=void 0!==t.useNewApi?t.useNewApi:i.useNewApi||!1,r.experiments=t.experiments||{},r.loaders=new Map,r.baseUrl=(r.useNewApi,t.baseUrl||""),r.requestContext=t.requestContext||Yh(i),r.onError=t.onError||cp,t.scope&&r.load(t.scope),t.scopes&&t.scopes.forEach(r.load.bind(r)),r}return(0,f.__extends)(t,e),t.prototype.add=function(e){this.experiments=(0,f.__assign)((0,f.__assign)({},this.experiments),e)},t.prototype._addLoader=function(e,t){var r=this;return this.loaders.set(e,t),t.then((function(){r.loaders.delete(e)})),t},t.prototype._getUrlWithFallback=function(e,t){var r=this,i=ap().getUrlResponse(e);if(void 0!==i)return Promise.resolve(i);var n=ap().getUrlRequest(e);if(void 0!==n)return n;var o=this.loaders.get(e);if(void 0!==o)return o;var s=function(e){return new Promise((function(t,r){var i=(0,lp.I)(),n=new XMLHttpRequest;n.open("GET",e,!0),Object.keys(i).forEach((function(e){return n.setRequestHeader(e,i[e])})),n.responseType="text",n.withCredentials=!0,n.onload=function(){n.status>=200&&n.status<400?t(n.responseText):r(new Error("Failed to load ".concat(e,", status ").concat(n.status)))},n.onerror=function(){return r(new Error("Failed to load ".concat(e)))},n.send()}))}(e).catch((function(e){return r.onError(e),t}));return ap().addUrlRequest(e,s),s},t.prototype.load=function(e){var t=this,r=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=!1),t?"".concat(tp.conductAllInScope,"?scope=").concat(encodeURIComponent(e)):"".concat(rp.conductAllInScope,"?scope=").concat(encodeURIComponent(e))}(e,this.useNewApi),i=this.useNewApi?Jh(this.requestContext):"",n="".concat(this.baseUrl).concat(r).concat(i),o=this._getUrlWithFallback(n,"{}").then((function(e){return ep(e)})).then((function(e){return t.useNewApi?e.values:e})).then((function(e){return t.add(e),e}));return this._addLoader(n,o)},t.prototype.conduct=function(e,t){var r=this,i=ap().getExperimentValue(e,this.useNewApi);if(void 0!==i)return this._addConductResult(e,i);var n=np(e,t,this.useNewApi),o=this.useNewApi?Jh(this.requestContext):"",s="".concat(this.baseUrl).concat(n).concat(o),a=this._getUrlWithFallback(s,null!=t?t:"").then((function(t){return r._addConductResult(e,t)}));return this._addLoader(s,a)},t.prototype.pending=function(){return!!this.loaders.size},t.prototype.ready=function(){return Promise.all(Array.from(this.loaders.values()))},t.prototype._addConductResult=function(e,t){var r,i=this.useNewApi?JSON.parse(t).value:t;return this.add(((r={})[e]=i,r)),Promise.resolve(i)},t}(up),hp=function(){return hp=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!n||o[1]>n[0]&&o[1]Wp(Bp,{darkMode:e}))({darkMode:t}))}getDataAttributes(){const{theme:e,darkMode:t,madefor:r}=this.props;return{"data-theme":e,"data-dark-mode":t,"data-madefor":r}}getValue(){const{theme:e,darkMode:t,madefor:r}=this.props;return{theme:e,darkMode:t,madefor:r,appFlagsClass:this.getClassName(),appDataAttributes:this.getDataAttributes()}}render(){const{dataHook:e,as:t="span",children:r}=this.props;return n.createElement(zp.Provider,{value:this.getValue()},n.createElement(t,{className:this.getClassName(),"data-hook":e,...this.getDataAttributes()},r))}}function Vp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function Kp(e,t,r){return t=fi(t),mi(e,qp()?Reflect.construct(t,r||[],fi(e).constructor):t.apply(e,r))}function qp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qp=function(){return!!e})()}jp.displayName="BaseUiNextProvider",jp.defaultProps={as:"span",darkMode:!1,madefor:!1};var Xp=function(e){function t(e){var r;return(0,hi.Z)(this,t),(r=Kp(this,t,[e])).themes={classic:Tp,responsive:Mp,facelift:Np},r.themeRootSelectors={classic:void 0,responsive:"responsive-skin",facelift:"classic-facelift-skin"},r}return vi(t,e),(0,pi.Z)(t,[{key:"getClassName",value:function(){var e=this.props,r=e.theme,i=e.madefor,n=e.darkMode,o=e.inputBorders;return Zp(Dp,{madefor:i},this.themes[r]({darkMode:n}),this.themeRootSelectors[r],n&&"dark-mode",o&&"facelift"===r?"input-borders-experiment":"",xp(fi(t.prototype),"getClassName",this).call(this))}},{key:"getDataAttributes",value:function(){return function(e){for(var t=1;t=c.length;return n.createElement("div",{className:g},u&&s?c.map((function(e){return n.createElement("link",{href:"".concat(u).concat(e),rel:"stylesheet",type:"text/css",key:e,onLoad:v})})):null,s&&y?n.createElement(e,(0,f.__assign)({},t)):null,!s&&n.createElement(e,(0,f.__assign)({},t)));function v(){p((function(e){return e+1}))}};return a.displayName="WithStyles",a.tokenForCiPoliceRule="e2425ecc-e4c1-474c-9e2b-8357f32c907b",a},createExperiments:function(e){return new yp(e)},createWidgetExperiments:function(e){return new dp(e)},providers:ng},Gh,{multilingualDisabled:!1,sentryConfig:{DSN:"https://2062d0a4929b45348643784b5cb39c36@sentry.wixpress.com/1643",id:"2062d0a4929b45348643784b5cb39c36",projectName:"communities-blog-ooi",teamName:"blogas",errorMonitor:!0},styleHocConfig:{enabled:!0},translationsConfig:{enabled:!1,icuEnabled:!1},stylesParams:i.default,customCssVars:i.customCssVars||function(){return{}},componentId:"813eb645-c6bd-4870-906d-694f30869fd9",name:"PostList",withErrorBoundary:!1,localeDistPath:"assets/locales"});og=(0,ig.hot)(e,og);const sg=Gh.loadChunks,ag={loadableReady:r(14318).loadableReady,chunkLoadingGlobal:"webpackJsonp__wix_communities_blog_ooi",component:og,loadChunks:sg}},35574:function(e,t,r){var i;/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */e=r.nmd(e),function(n){var o=t,s=(e&&e.exports,"object"==typeof r.g&&r.g);s.global!==s&&s.window;var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var l=function(e){throw new a(e)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,d={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var t,r,i,n,o=e.length%3,s="",a=-1,c=e.length-o;++a>18&63)+u.charAt(n>>12&63)+u.charAt(n>>6&63)+u.charAt(63&n);return 2==o?(t=e.charCodeAt(a)<<8,r=e.charCodeAt(++a),s+=u.charAt((n=t+r)>>10)+u.charAt(n>>4&63)+u.charAt(n<<2&63)+"="):1==o&&(n=e.charCodeAt(a),s+=u.charAt(n>>2)+u.charAt(n<<4&63)+"=="),s},decode:function(e){var t=(e=String(e).replace(c,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var r,i,n=0,o="",s=-1;++s>(-2*n&6)));return o},version:"1.0.0"};void 0===(i=function(){return d}.call(t,r,t,e))||(e.exports=i)}()},60042:(e,t)=>{var r; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var i={}.hasOwnProperty;function n(){for(var e=[],t=0;t{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},96855:(e,t,r)=>{var i=r(49552),n=r(10521),o=Object.hasOwnProperty,s=Object.create(null);for(var a in i)o.call(i,a)&&(s[i[a]]=a);var l=e.exports={to:{},get:{}};function u(e,t,r){return Math.min(Math.max(t,e),r)}function c(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,r;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),r="hsl";break;case"hwb":t=l.get.hwb(e),r="hwb";break;default:t=l.get.rgb(e),r="rgb"}return t?{model:r,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,r,n,s=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(n=t[2],t=t[1],r=0;r<3;r++){var a=2*r;s[r]=parseInt(t.slice(a,a+2),16)}n&&(s[3]=parseInt(n,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(n=(t=t[1])[3],r=0;r<3;r++)s[r]=parseInt(t[r]+t[r],16);n&&(s[3]=parseInt(n+n,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(r=0;r<3;r++)s[r]=parseInt(t[r+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:o.call(i,t[1])?((s=i[t[1]])[3]=1,s):null:null;for(r=0;r<3;r++)s[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}for(r=0;r<3;r++)s[r]=u(s[r],0,255);return s[3]=u(s[3],0,1),s},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var r=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(r)?1:r,0,1)]}return null},l.to.hex=function(){var e=n(arguments);return"#"+c(e[0])+c(e[1])+c(e[2])+(e[3]<1?c(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=n(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=n(arguments),t=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+r+"%, "+i+"%)":"rgba("+t+"%, "+r+"%, "+i+"%, "+e[3]+")"},l.to.hsl=function(){var e=n(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=n(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return s[e.slice(0,3)]}},55839:(e,t,r)=>{"use strict";var i=r(19185),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||n}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,r,i){if("string"!=typeof r){if(g){var n=p(r);n&&n!==g&&e(t,n,i)}var s=c(r);d&&(s=s.concat(d(r)));for(var a=l(t),m=l(r),f=0;f{"use strict";r.r(t),r.d(t,{default:()=>o});var i=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function n(e,t){if(e.length!==t.length)return!1;for(var r=0;r{"use strict";r.d(t,{Z:()=>i});const i={container:"RiOfiW",isRTL:"FnDyW0",isRtl:"FnDyW0",withCover:"ac4Ofz",newPadding:"JlQ2sc",grid:"jDqjOt","pg-grid":"lyd6fK",pgGrid:"lyd6fK","pg-grid-intermediate":"i_25UC",pgGridIntermediate:"i_25UC","pg-grid-large":"yWOr1I",pgGridLarge:"yWOr1I",slider:"hKl06e","pg-one-column":"UUSLFD",pgOneColumn:"UUSLFD","pg-medium":"x_FPRX",pgMedium:"x_FPRX","list-medium":"PoYsMP",listMedium:"PoYsMP","list-large":"EfvfyL",listLarge:"EfvfyL",list:"NAWdyL","side-by-side":"ivAnV0",sideBySide:"ivAnV0","pg-side-by-side-right":"g8vcTX",pgSideBySideRight:"g8vcTX","pg-side-by-side":"TBrkhx",pgSideBySide:"TBrkhx",videoEmbed:"ITPCIq",large:"feQY6g",image:"pccjOy",contentWrapper:"iSTCpN",boxShadow:"QlVZyW","one-column-mobile":"glhtJc",oneColumnMobile:"glhtJc",withoutFooter:"p8Uk20",mobile:"WdRrHJ",small:"G1V6el",medium:"KwFkyo","text-on-image-small":"sCkhyN",textOnImageSmall:"sCkhyN",withBackground:"KEL4fK","pg-text-on-image-small":"hp0NoL",pgTextOnImageSmall:"hp0NoL","pg-text-on-image-large":"FK1tXh",pgTextOnImageLarge:"FK1tXh","pg-text-on-image-medium":"JnzaaY",pgTextOnImageMedium:"JnzaaY","text-on-image-medium":"LdmkLw",textOnImageMedium:"LdmkLw",titleWrapper:"O16KGI",customFocus:"i6wKmL",textWrapper:"JMCi2v",proGallery:"pu51Xe",withShowMoreButton:"mqysW5",withoutHeaderMetadata:"ZBB0ua",withoutShowMoreButton:"xs2MeC","with-category-label":"I5nSmk",withCategoryLabel:"I5nSmk",category:"hrftIZ",title:"FbwBsX",withIcons:"CzG_Nm",profile:"ZpmKeC",withoutDescription:"AkO1lZ",withoutBottomMargin:"ySFpqx",content:"nebVix",footer:"NPsER6","without-footer":"p8Uk20","text-on-image-icons":"n9F1tl",textOnImageIcons:"n9F1tl","text-on-image-text-color":"VMF9AQ",textOnImageTextColor:"VMF9AQ","text-on-image-seperator-background-color":"BVf6py",textOnImageSeperatorBackgroundColor:"BVf6py",separator:"TE7que",mobileSeparator:"iD0LEx",withMetadata:"vxAOcp",withoutCover:"kzwb6t","post-list":"zwuMcM",postList:"zwuMcM",unpublishedBadge:"GGI4XB",unpublishedBadgeBorder:"NtnM8D",coverContainer:"tFEVbz",coverWrapper:"QP8OH2",responsiveTitle:"Gf88Ln",fadeout:"so9KdE",mobileWrapper:"hMB1wk",excerptLink:"CHRJex",forceRelative:"_UH27m",rating:"EQ1O0U",homepage:"xczrBK",withTextOnImageStyles:"amZSNe"}},9754:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={ON_GALLERY:0,OUTSIDE_GALLERY:1,MOUSE_CURSOR:2}},65177:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={CROP:"fill",FIT:"fit",MIN:"min",MAX:"max"}},88119:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={DESKTOP:"desktop",MOBILE:"mobile",TABLET:"tablet"}},65452:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={SMART:"smart",PIXELS:"px",RATIO:"ratio"}},11334:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={FIT_TO_SCREEN:0,SET_ITEMS_PER_ROW:1}},30443:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={NO_EFFECT:"NO_EFFECT",ZOOM_IN:"ZOOM_IN",BLUR:"BLUR",GRAYSCALE:"GRAYSCALE",SHRINK:"SHRINK",INVERT:"INVERT",COLOR_IN:"COLOR_IN",DARKENED:"DARKENED",MAIN_COLOR:"MAIN_COLOR"}},8294:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={NO_EFFECT:"NO_EFFECT",SLIDE:"SLIDE"}},81023:(e,t,r)=>{"use strict";r.d(t,{Z:()=>q});var i=r(9754);const n={ITEM_CENTER:"ITEM_CENTER",IMAGE_CENTER:"IMAGE_CENTER",INFO_CENTER:"INFO_CENTER"};var o=r(65177);const s={SIDE_BAR_WIDTH:430,STORE_SIDE_BAR_WIDTH:560,MOBILE_PADDING:120,NO_PADDING:0};const a={APP_LOADED:"APP_LOADED",ITEM_CREATED:"ITEM_CREATED",ITEM_LOADED:"ITEM_LOADED",GALLERY_CHANGE:"GALLERY_CHANGE",ITEM_ACTION_TRIGGERED:"ITEM_ACTION_TRIGGERED",CURRENT_ITEM_CHANGED:"CURRENT_ITEM_CHANGED",NEED_MORE_ITEMS:"NEED_MORE_ITEMS",VIDEO_ENDED:"VIDEO_ENDED",VIDEO_ERROR:"VIDEO_ERROR",VIDEO_PAUSED:"VIDEO_PAUSED",VIDEO_PLAYED:"VIDEO_PLAYED",HOVER_SET:"HOVER_SET",LOAD_MORE_CLICKED:"LOAD_MORE_CLICKED",ITEM_CLICKED:"ITEM_CLICKED",THUMBNAIL_CLICKED:"THUMBNAIL_CLICKED",ITEM_FOCUSED:"ITEM_FOCUSED",ITEM_LOST_FOCUS:"ITEM_LOST_FOCUS",GALLERY_SCROLLED:"GALLERY_SCROLLED"};var l=r(88119),u=r(65452);const c={LEFT:"left",RIGHT:"right",CENTER:"center"};var d=r(11334);const h={MIDDLE:"MIDDLE",TOP:"TOP",LEFT:"LEFT",RIGHT:"RIGHT",BOTTOM:"BOTTOM"};const p={1:"1","2v":"2v","2h":"2h","3r":"3r","3b":"3b","3t":"3t","3l":"3l","3v":"3v","3h":"3h"};var g=r(30443),m=r(67427),f=r(37242);const y={COLUMNS:!0,ROWS:!1};const v={EXPAND:"expand",LINK:"link",NOTHING:"nothing",FULLSCREEN:"fullscreen",MAGNIFY:"magnify"};var b=r(10418);const S={LEFT_TO_RIGHT:!1,RIGHT_TO_LEFT:!0};var P=r(49456),w=r(60176);const _={PARTIAL:"partial",ALL:"all"};const C={EXPAND:"EXPAND",FADE:"FADE",CAROUSEL:"CAROUSEL",CROSSFADE:"CROSSFADE"};var E=r(90480),I=r(66092);const O={FILL:"fill",FIT:"fit",FULL:"full",VIDEO:"video"};const x={NO_EFFECT:"NO_EFFECT",FADE_IN:"FADE_IN",GRAYSCALE:"GRAYSCALE",SLIDE_UP:"SLIDE_UP",EXPAND:"EXPAND",SHRINK:"SHRINK",ZOOM_OUT:"ZOOM_OUT",ONE_COLOR:"ONE_COLOR",MAIN_COLOR:"MAIN_COLOR",BLUR:"BLUR"};var A=r(30579),T=r(81391);const L={FACEBOOK:"facebook",TWITTER:"twitter",PINTEREST:"pinterest",EMAIL:"email",TUMBLR:"tumblr"};var M=r(42272);const R={BOTTOM:"bottom",LEFT:"left",TOP:"top",RIGHT:"right"};const N={ON_GALLERY:"ON_GALLERY",OUTSIDE_GALLERY:"OUTSIDE_GALLERY"};const k={HOVER:"hover",AUTO:"auto",ON_CLICK:"onClick"};var D=r(76990),Z=r(8294);const H={ease:"cubic-bezier(0.46,0.1,0.25,1)"};const B={LEFT:"LEFT",RIGHT:"RIGHT",BOTTOM:"BOTTOM",TOP:"TOP",CENTERED_VERTICALLY:"CENTERED_VERTICALLY",CENTERED_HORIZONTALLY:"CENTERED_HORIZONTALLY"};const W={PIXEL:"PIXEL",PERCENT:"PERCENT"};const F={INTERVAL:"interval",CONTINUOUS:"continuous"};const G={DEFAULT_ARROW:"DEFAULT_ARROW",ARROW_2:"ARROW_2",ARROW_3:"ARROW_3",ARROW_4:"ARROW_4",ARROW_5:"ARROW_5",ARROW_6:"ARROW_6",ARROW_7:"ARROW_7"};const U={NONE:"NONE",SHADOW:"SHADOW",BOX:"BOX"};const z={FULL:"FULL",SCALED_DOWN:"SCALED_DOWN"};const j={OFF:"OFF",INTERVAL:"INTERVAL",CONTINUOUS:"CONTINUOUS"};const V={OFF:"OFF",HOVER:"HOVER"};const K={APPEARS:"APPEARS"},q={arrowsPosition:i.Z,itemResolutionMode:z,arrowsVerticalPosition:n,cubeType:o.Z,dimensions:s,events:a,deviceType:l.Z,gallerySizeType:u.Z,galleryTextAlign:c,gridStyle:d.Z,cubeFitPosition:h,groupTypes:p,imageHoverAnimations:g.Z,infoBehaviourOnHover:m.Z,infoType:f.Z,isVertical:y,itemClick:v,layout:b.Z,isLayout:b.L,layoutDirection:S,loadingMode:P.Z,loadingWithColorMode:w.Z,loadMoreAmount:_,mobileSwipeAnimations:C,overlayAnimations:E.Z,placements:I.ZP,hasExternalAbovePlacement:I.Jn,hasExternalBelowPlacement:I.LC,hasHoverPlacement:I.Sy,hasExternalRightPlacement:I.p9,hasExternalLeftPlacement:I.bo,hasExternalVerticalPlacement:I.hd,hasExternalHorizontalPlacement:I.Xq,isExternalAbovePlacement:I.hj,isExternalBelowPlacement:I.eh,isHoverPlacement:I.mR,isExternalRightPlacement:I.Gk,isExternalLeftPlacement:I.Ie,isExternalVerticalPlacement:I.Re,isExternalHorizontalPlacement:I.qr,isConstantVerticalPlacement:I.DT,resizeMethods:O,scrollAnimations:x,slideAnimations:A.Z,scrollDirection:T.Z,socialNetworks:L,textBoxWidthCalculationOptions:M.Z,thumbnailsAlignment:R,thumbnailsPosition:N,urlSizes:{RESIZED:"resized",MULTI:"multi",SCALED:"scaled",PIXEL:"pixel",THUMBNAIL:"thumbnail",SQUARE:"square",FULL:"full",SAMPLE:"sample",PRELOAD:"preload",DOWNLOAD:"download",DOWNLOAD_SAMPLE:"download_sample",MAGNIFIED:"magnified"},urlTypes:{HIGH_RES:"img",LOW_RES:"thumb",VIDEO:"video"},videoPlay:k,viewMode:D.Z,imagePlacementAnimations:Z.Z,slideTransition:H,overlayPositions:B,overlaySizeType:W,autoSlideshowTypes:F,arrowsType:G,arrowsContainerStyleType:U,autoSlideBehaviour:j,secondaryMediaTrigger:V,secondaryMediaBehaviour:K}},67427:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={APPEARS:"APPEARS",DISAPPEARS:"DISAPPEARS",NO_CHANGE:"NO_CHANGE",NEVER_SHOW:"NEVER_SHOW"}},37242:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={NO_BACKGROUND:"NO_BACKGROUND",ATTACHED_BACKGROUND:"ATTACHED_BACKGROUND",SEPARATED_BACKGROUND:"SEPARATED_BACKGROUND",DONT_SHOW:"DONT_SHOW"}},10418:(e,t,r)=>{"use strict";r.d(t,{L:()=>n,Z:()=>o});var i={JSON_FIXED:-3,DESIGNED_PRESET:-2,EMPTY:-1,COLLAGE:0,MASONRY:1,GRID:2,THUMBNAIL:3,SLIDER:4,SLIDESHOW:5,PANORAMA:6,COLUMN:7,MAGIC:8,FULLSIZE:9,BRICKS:10,MIX:11,ALTERNATE:12},n=function(e){return function(t){return t.galleryLayout===i[e]}};const o=i},49456:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={BLUR:"BLUR",COLOR:"COLOR",MAIN_COLOR:"MAIN_COLOR",NONE:"NONE"}},60176:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={PICKED_COLOR:"PICKED_COLOR",MAIN_COLOR:"MAIN_COLOR"}},90480:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={NO_EFFECT:"NO_EFFECT",FADE_IN:"FADE_IN",EXPAND:"EXPAND",SLIDE_UP:"SLIDE_UP",SLIDE_RIGHT:"SLIDE_RIGHT",SLIDE_DOWN:"SLIDE_DOWN",SLIDE_LEFT:"SLIDE_LEFT"}},66092:(e,t,r)=>{"use strict";r.d(t,{DT:()=>E,Gk:()=>_,Ie:()=>C,Jn:()=>h,LC:()=>p,Re:()=>v,Sy:()=>d,Xq:()=>y,ZP:()=>I,bo:()=>m,eh:()=>P,hd:()=>f,hj:()=>S,mR:()=>w,p9:()=>g,qr:()=>b});var i={SHOW_ON_HOVER:"SHOW_ON_HOVER",SHOW_BELOW:"SHOW_BELOW",SHOW_ABOVE:"SHOW_ABOVE",SHOW_ON_THE_RIGHT:"SHOW_ON_THE_RIGHT",SHOW_ON_THE_LEFT:"SHOW_ON_THE_LEFT",ALTERNATE_HORIZONTAL:"ALTERNATE_HORIZONTAL",ALTERNATE_VERTICAL:"ALTERNATE_VERTICAL"},n="OVERLAY",o="ABOVE",s="BELOW",a="LEFT",l="RIGHT",u="ALTERNATE_HORIZONTALLY",c="ALTERNATE_VERTICALLY",d=function(e){return String(e).includes(i.SHOW_ON_HOVER)||String(e).includes(n)},h=function(e,t){return String(e).includes(i.SHOW_ABOVE)||String(e).includes(o)||t%2==0&&(String(e).includes(i.ALTERNATE_VERTICAL)||String(e).includes(c))},p=function(e,t){return String(e).includes(i.SHOW_BELOW)||String(e).includes(s)||t%2==1&&(String(e).includes(i.ALTERNATE_VERTICAL)||String(e).includes(c))},g=function(e,t){return String(e).includes(i.SHOW_ON_THE_RIGHT)||String(e).includes(l)||t%2==0&&String(e).includes(i.ALTERNATE_HORIZONTAL)||String(e).includes(u)},m=function(e,t){return String(e).includes(i.SHOW_ON_THE_LEFT)||t%2==1&&String(e).includes(i.ALTERNATE_HORIZONTAL)||String(e).includes(u)},f=function(e){return h(e,0)||p(e,1)},y=function(e){return g(e,0)||m(e,1)},v=function(e){return f(e)&&!y(e)&&!d(e)},b=function(e){return y(e)&&!f(e)&&!d(e)},S=function(e){return String(e)===i.SHOW_ABOVE||String(e)===o},P=function(e){return String(e)===i.SHOW_BELOW||String(e)===s},w=function(e){return String(e)===i.SHOW_ON_HOVER||String(e)===n},_=function(e){return String(e)===i.SHOW_ON_THE_RIGHT||String(e)===l},C=function(e){return String(e)===i.SHOW_ON_THE_LEFT||String(e)===a},E=function(e){var t=e.split(","),r=t.shift();return function(e){return S(e)||P(e)}(r)&&t.every((function(e){return e===r}))};const I=i},81391:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={VERTICAL:0,HORIZONTAL:1}},30579:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={SCROLL:"SCROLL",FADE:"FADE",DECK:"DECK"}},42272:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={PERCENT:"PERCENT",MANUAL:"MANUAL"}},76990:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});const i={SITE:"SITE",EDIT:"EDIT",PREVIEW:"PREVIEW",SEO:"SEO"}},17324:(e,t,r)=>{"use strict";r.d(t,{Z:()=>y});var i={};r.r(i),r.d(i,{debounce:()=>l,get:()=>u,isEqual:()=>d,isFunction:()=>c,isNumber:()=>h,pick:()=>s,throttle:()=>a});var n=r(85556),o=void 0,s=function(e,t){var r={};return Object.entries(e||{}).forEach((function(e){var i=e[0],n=e[1];t.indexOf(i)>=0&&(r[i]=n)})),r},a=function(e,t){var r=!1,i=!1;return function(){for(var n=[],s=0;sr;)e-=t;return e},e.prototype.sliceArrayWithRange=function(e,t,r){var i=this;return Array(r-t).fill(0).map((function(r,n){var o=t+n;return e[i.inRange(o,e.length,e.length-1)]}))},e.prototype.sliceArrayIfAvailable=function(e,t,r){var i=Math.max(t,0),n=Math.min(r,e.length);return i>t&&(n=Math.min(n+(i-t),e.length)),n=0:i||void 0)}))},e.prototype.isUserAgentMobile=function(){try{return this.getOrPutFromCache("isUserAgentMobile",(function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||p.Z.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|pixel|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))&&(t=!0),t}))}catch(e){return!1}},e.prototype.isMobile=function(){var e=this;return this.getOrPutFromCache("isMobile",(function(){var t=e.isMobileByProps(),r=e.isUserAgentMobile();return e.isUndefined(t)?r:t}))},e.prototype.isTouch=function(){var e=this;return this.getOrPutFromCache("isTouch",(function(){var t,r=(0,g.dh)(),i=(null===(t=p.Z.navigator)||void 0===t?void 0:t.maxTouchPoints)>0||"ontouchstart"in p.Z.document.documentElement;return e.isUndefined(r)?i:r}))},e.prototype.isTest=function(){try{return p.Z.isTest}catch(e){return!1}},e.prototype.isLocal=function(){try{var e=p.Z.location.hostname;return"local.wix.com"===e||(e.indexOf("localhost")>=0||"true"===this.parseGetParam("debug"))}catch(e){return!1}},e.prototype.isDev=function(){var e=this;return this.getOrPutFromCache("isDev",(function(){return e.shouldDebug("ph_local")||e.isOOI()&&!1||"true"===(e.safeLocalStorage()||{}).forceDevMode}))},e.prototype.isVerbose=function(){return!this.isTest()&&"true"===(this.safeLocalStorage()||{}).forceDevMode},e.prototype.isStoreGallery=function(){var e=this;return this.getOrPutFromCache("isStoreGallery",(function(){try{return p.Z.location.search.toLowerCase().indexOf("isstore")>-1}catch(t){return e.isDev()&&console.error("cant find window",t),!1}}))},e.prototype.isSSR=function(){return void 0===(null===r.g||void 0===r.g?void 0:r.g.window)},e.prototype.isOOI=function(){return this.isSSR()||"undefined"!=typeof top&&"undefined"!=typeof self&&(top===self||self.location.origin.includes("editor.wix.com"))},e.prototype.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.floor(16*Math.random())||0;return"x"===e?t.toString(16):e}))},e.prototype.isExternalUrl=function(e){return/(^https?)|(^data)|(^blob)/.test(e)},e.prototype.isiOS=function(){return this.getOrPutFromCache("isiOS",(function(){try{return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!p.Z.MSStream}catch(e){return!1}}))},e.prototype.isiPhone=function(){return this.getOrPutFromCache("isiPhone",(function(){try{return/iPhone/.test(navigator.userAgent)&&!p.Z.MSStream}catch(e){return!1}}))},e.prototype.isLandscape=function(){var e=this;return this.getOrPutFromCache("isLandscape",(function(){if(!e.isMobile())return!1;try{if(e.isUndefined(p.Z.orientation)){var t=p.Z.matchMedia("(orientation: landscape)");return!(!t||!0!==t.matches)}return 90===p.Z.orientation||-90===p.Z.orientation}catch(e){return!1}}))},e.prototype.safeLocalStorage=function(){try{return localStorage||p.Z}catch(e){return p.Z}},e.prototype.shouldDebug=function(e){try{return!!this.safeLocalStorage()[e]||(p.Z.debugApp||"").indexOf(e)>=0||(this.parseGetParam("debugApp")||"").indexOf(e)>=0}catch(e){return!1}},e.prototype.deviceHasMemoryIssues=function(){return this.isiOS()},e.prototype.getTabIndex=function(e){var t=["currentGalleryItem","loadMoreButton","slideshowNext","slideshowPrev","currentThumbnail","slideshowLove","slideshowShare","cartIcon","cartClose","cartFrame","fullscreenClose","fullscreenNext","fullscreenPrev","fullscreenInfo","fullscreenLink","fullscreenProvider","fullscreenCartButton","fullscreenCheckout","fullscreenExpand","fullscreenVideoPlay","fullscreenVideoBar","fullscreenVideoMute","fullscreenVideoVolume","fullscreenCartIcon","fullscreenDownload","fullscreenLove","fullscreenShare"].indexOf(e)+1;return t>=0&&this.isOOI()?0:t||-1},e.prototype.setStateAndLog=function(e,t,r,i){var o=this;if(this.isVerbose()){console.log("State Change Called ("+t+")",r);var s=(0,n.__assign)({},e.state);e.setState(r,(function(){var r=(0,n.__assign)({},e.state),a=o.printableObjectsDiff(s,r,"state");Object.keys(a).length>0&&console.log("State Change Completed ("+t+")",a),o.isFunction(i)&&i.bind(e)()}))}else e.setState(r,(function(){o.isFunction(i)&&i.bind(e)()}))},e.prototype.printableObjectsDiff=function(e,t,r){var i=this;void 0===r&&(r="");var n=function(e){return""===e?e="''":i.isUndefined(e)&&(e="undefined"),String(e)},o=function(e,t,r,s){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===s&&(s=1),s>3?{}:Object.entries(e).reduce((function(e,a){var l=a[0],u=a[1];return i.isEqual(u,t[l])||(Array.isArray(t[l])?(u.length!==t[l].length&&(e[l+".length"]="["+u.length+"] => ["+t[l].length+"]"),e=Object.assign(e,o(u,t[l],(r?r+".":"")+l,s+1))):"object"==typeof t[l]?e=Object.assign(e,o(u,t[l],(r?r+".":"")+l,s+1)):e[(r?r+".":"")+l]=n(u)+" => "+n(t[l])),e}),{})};return o(e,t,r,1)},e.prototype.getScreenWidth=function(){if((0,g.g4)()&&this.isMobile())return 320;if(this.isTest())return 1920;try{return this.isLandscape()?Math.max(p.Z.screen.width,p.Z.screen.height):p.Z.screen.width}catch(e){return 1920}},e.prototype.getScreenHeight=function(){if(this.isTest())return 1200;try{return this.isLandscape()?Math.min(p.Z.screen.width,p.Z.screen.height):p.Z.screen.height}catch(e){return 1200}},e.prototype.getWindowWidth=function(){try{return p.Z.innerWidth||980}catch(e){return 980}},e.prototype.getMobileEnabledClick=function(e){return this.isMobile()?{onTouchEnd:e}:{onClick:e}},e.prototype.getTopUrlParam=function(e){if(this.isUndefined(this._cache.params)&&(this._cache.params={}),this.isUndefined(this._cache.params[e]))try{this._cache.params[e]=top.location.search.replace("?","").split("&").map((function(t){var r=t.split("=");return r[0]===e&&r[1]||""})).join("")}catch(t){this._cache.params[e]=!1}return this._cache.params[e]},e.prototype.scrollTo=function(e,t,r,i,n){this.isMobile()&&(r=0);var o=i?e.scrollLeft:e.scrollTop,s=t-o,a=0,l=function(){var t=function(e,t,r,i){return 0===i?r+t:(e/=i/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t}(a+=20,o,s,r);a{"use strict";r.d(t,{Ce:()=>o,KH:()=>c,Vg:()=>u,bK:()=>s,dh:()=>d,g4:()=>l,wh:()=>a});var i=r(76990),n=r(88119),o=new(function(){function e(){this.setViewMode=this.setViewMode.bind(this),this.isSiteMode=this.isSiteMode.bind(this),this.isEditMode=this.isEditMode.bind(this),this.isPreviewMode=this.isPreviewMode.bind(this),this.isSEOMode=this.isSEOMode.bind(this),this.setDeviceType=this.setDeviceType.bind(this),this.isDeviceTypeDesktop=this.isDeviceTypeDesktop.bind(this),this.isDeviceTypeMobile=this.isDeviceTypeMobile.bind(this),this.isDeviceTypeTablet=this.isDeviceTypeTablet.bind(this),this.isDeviceTypeTouch=this.isDeviceTypeTouch.bind(this),this._viewMode=i.Z.SITE,this._deviceType=n.Z.DESKTOP}return e.prototype.setViewMode=function(e){this._viewMode=e},e.prototype.setDeviceType=function(e){this._deviceType=e},e.prototype.isDeviceTypeMobile=function(){return this._deviceType===n.Z.MOBILE},e.prototype.isDeviceTypeTablet=function(){return this._deviceType===n.Z.TABLET},e.prototype.isDeviceTypeDesktop=function(){return this._deviceType===n.Z.DESKTOP},e.prototype.isDeviceTypeTouch=function(){return this.isDeviceTypeMobile()||this.isDeviceTypeTablet()},e.prototype.isSiteMode=function(){return this._viewMode===i.Z.SITE},e.prototype.isEditMode=function(){return this._viewMode===i.Z.EDIT},e.prototype.isPreviewMode=function(){return this._viewMode===i.Z.PREVIEW},e.prototype.isSEOMode=function(){return this._viewMode===i.Z.SEO},e}()),s=o.isSiteMode,a=o.isEditMode,l=o.isPreviewMode,u=o.isSEOMode,c=o.isDeviceTypeMobile,d=(o.isDeviceTypeTablet,o.isDeviceTypeDesktop,o.isDeviceTypeTouch)},40496:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m,h:()=>g});var i=r(85556),n=function(){return{}},o=2560,s=1440,a={y:0,x:0,width:o,height:s,innerWidth:o,innerHeight:s,outerWidth:o,outerHeight:s,clientWidth:o,clientHeight:s},l=(0,i.__assign)((0,i.__assign)({},a),{getBoundingClientRect:function(){return a}}),u=(0,i.__assign)({addEventListener:n,removeEventListener:n,createEvent:n,getElementById:function(){return l},getElementsByClassName:function(){return[l]},getElementsByTagName:function(){return[l]},querySelector:function(){return[l]},documentElement:l,activeElement:l,style:a},a);u.body=u;var c=(0,i.__assign)((0,i.__assign)({},a),{scrollTop:0,scrollY:0}),d=(0,i.__assign)({isMock:!0,isSSR:!0,orientation:0,devicePixelRatio:1,addEventListener:n,removeEventListener:n,createEvent:n,CustomEvent:n,screen:a,open:n,petri:{},search:{},location:{href:"http://mock.wix.com/",protocol:"http:",host:"mock.wix.com",hostname:"mock.wix.com",port:"",pathname:"/",search:"",hash:""},postMessage:n,requestAnimationFrame:n,dispatchEvent:n,document:u,getComputedStyle:n,localStorage:{},frames:[]},c),h=new Map(Object.keys(c).map((function(e){return[e,c[e]]})));d.parent=d;const p=d;var g=new(function(){function e(){this.shouldUseMock=!0,this.initProxyWindow=this.initProxyWindow.bind(this),this.windowIsAvailable()?this.initProxyWindow():this.initMockWindow()}return e.prototype.windowIsAvailable=function(){try{return"undefined"!=typeof window}catch(e){return!1}},e.prototype.initProxyWindow=function(){var e=new Set,t={get:function(t,r){return h.has(r)&&this.shouldUseMock?h.get(r):"function"!=typeof t[r]||e.has(r)?t[r]:t[r].bind(t)}.bind(this),set:function(t,r,i){return e.add(r),Reflect.set(t,r,i)}};this.window=new Proxy(window,t)},e.prototype.initMockWindow=function(){this.window=p,this.window.mockInstanceId=Math.floor(1e5*Math.random())},e.prototype.stopUsingMock=function(){this.shouldUseMock=!1},Object.defineProperty(e.prototype,"shouldUseMock",{get:function(){return this._shouldUseMock},set:function(e){this._shouldUseMock=e},enumerable:!1,configurable:!0}),e}());const m=g.window},21508:(e,t,r)=>{"use strict";r.d(t,{FX:()=>o,Tx:()=>s,_x:()=>n,oZ:()=>l,v5:()=>a});var i=r(85556);function n(e,t,r,n){void 0===n&&(n=!0);var o=n?(0,i.__assign)({},e):e,s=t.split("_"),a=s.pop(),l=o;return s.forEach((function(e){"object"!=typeof l[e]&&(l[e]={}),l=l[e]})),l[a]=r,o}function o(e){var t={};for(var r in e)if(e.hasOwnProperty(r))if("object"==typeof e[r]&&!(e[r]instanceof Array)&&null!==e[r]&&Object.keys(e[r]).length>0){var i=o(e[r]);for(var n in i)i.hasOwnProperty(n)&&(t[r+"_"+n]=i[n])}else t[r]=e[r];return t}function s(e){return Object.entries(e).reduce((function(e,t){return n(e,t[0],t[1],false)}),{})}function a(e){return Object.keys(e).forEach((function(t){return void 0===e[t]?delete e[t]:{}})),e}function l(){for(var e=[],t=0;t{"use strict";r.d(t,{Z:()=>yr});var i=r(85556),n=r(27762),o=r.n(n),s=r(81023),a=r(17324),l=r(21508),u=r(10418);const c={layoutParams:{groups:{density:"layoutParams_groups_density",groupByOrientation:"layoutParams_groups_groupByOrientation",numberOfGroupsPerRow:"layoutParams_groups_numberOfGroupsPerRow",allowedGroupTypes:"layoutParams_groups_allowedGroupTypes",repeatingGroupTypes:"layoutParams_groups_repeatingGroupTypes",groupSize:"layoutParams_groups_groupSize"},crop:{method:"layoutParams_crop_method",alignment:"layoutParams_crop_alignment",enable:"layoutParams_crop_enable",enableSmartCrop:"layoutParams_crop_enableSmartCrop",cropOnlyFill:"layoutParams_crop_cropOnlyFill",ratios:"layoutParams_crop_ratios"},structure:{galleryLayout:"layoutParams_structure_galleryLayout",galleryRatio:{value:"layoutParams_structure_galleryRatio_value",includeExternalInfo:"layoutParams_structure_galleryRatio_includeExternalInfo"},enableStreching:"layoutParams_structure_enableStreching",gallerySpacing:"layoutParams_structure_gallerySpacing",itemSpacing:"layoutParams_structure_itemSpacing",scrollDirection:"layoutParams_structure_scrollDirection",numberOfColumns:"layoutParams_structure_numberOfColumns",numberOfGridRows:"layoutParams_structure_numberOfGridRows",responsiveMode:"layoutParams_structure_responsiveMode",columnRatios:"layoutParams_structure_columnRatios",scatter:{randomScatter:"layoutParams_structure_scatter_randomScatter",manualScatter:"layoutParams_structure_scatter_manualScatter"},layoutOrientation:"layoutParams_structure_layoutOrientation",groupsOrder:"layoutParams_structure_groupsOrder"},thumbnails:{enable:"layoutParams_thumbnails_enable",position:"layoutParams_thumbnails_position",spacing:"layoutParams_thumbnails_spacing",size:"layoutParams_thumbnails_size",alignment:"layoutParams_thumbnails_alignment"},navigationArrows:{enable:"layoutParams_navigationArrows_enable",size:"layoutParams_navigationArrows_size",padding:"layoutParams_navigationArrows_padding",position:"layoutParams_navigationArrows_position",verticalAlignment:"layoutParams_navigationArrows_verticalAlignment",type:"layoutParams_navigationArrows_type",container:{type:"layoutParams_navigationArrows_container_type",borderRadius:"layoutParams_navigationArrows_container_borderRadius",backgroundColor:"layoutParams_navigationArrows_container_backgroundColor"},mouseCursorContainerMaxWidth:"layoutParams_navigationArrows_mouseCursorContainerMaxWidth"},info:{sizeUnits:"layoutParams_info_sizeUnits",width:"layoutParams_info_width",height:"layoutParams_info_height",spacing:"layoutParams_info_spacing",layout:"layoutParams_info_layout",border:{width:"layoutParams_info_border_width",color:"layoutParams_info_border_color",radius:"layoutParams_info_border_radius"},placement:"layoutParams_info_placement"},targetItemSize:{unit:"layoutParams_targetItemSize_unit",value:"layoutParams_targetItemSize_value",minimum:"layoutParams_targetItemSize_minimum"}},behaviourParams:{item:{clickAction:"behaviourParams_item_clickAction",video:{speed:"behaviourParams_item_video_speed",volume:"behaviourParams_item_video_volume",loop:"behaviourParams_item_video_loop",playTrigger:"behaviourParams_item_video_playTrigger",enablePlayButton:"behaviourParams_item_video_enablePlayButton",enableControls:"behaviourParams_item_video_enableControls",enablePlaceholder:"behaviourParams_item_video_enablePlaceholder"},overlay:{hoveringBehaviour:"behaviourParams_item_overlay_hoveringBehaviour",hoverAnimation:"behaviourParams_item_overlay_hoverAnimation",position:"behaviourParams_item_overlay_position",size:"behaviourParams_item_overlay_size",sizeUnits:"behaviourParams_item_overlay_sizeUnits",padding:"behaviourParams_item_overlay_padding"},content:{hoverAnimation:"behaviourParams_item_content_hoverAnimation",placementAnimation:"behaviourParams_item_content_placementAnimation",loader:"behaviourParams_item_content_loader",magnificationValue:"behaviourParams_item_content_magnificationValue"},secondaryMedia:{trigger:"behaviourParams_item_secondaryMedia_trigger",behaviour:"behaviourParams_item_secondaryMedia_behaviour"}},gallery:{layoutDirection:"behaviourParams_gallery_layoutDirection",blockContextMenu:"behaviourParams_gallery_blockContextMenu",scrollAnimation:"behaviourParams_gallery_scrollAnimation",enableIndexingShareLinks:"behaviourParams_gallery_enableIndexingShareLinks",vertical:{loadMore:{enable:"behaviourParams_gallery_vertical_loadMore_enable",amount:"behaviourParams_gallery_vertical_loadMore_amount",text:"behaviourParams_gallery_vertical_loadMore_text"}},horizontal:{enableScrollSnap:"behaviourParams_gallery_horizontal_enableScrollSnap",slideAnimation:"behaviourParams_gallery_horizontal_slideAnimation",slideTransition:"behaviourParams_gallery_horizontal_slideTransition",blockScroll:"behaviourParams_gallery_horizontal_blockScroll",navigationDuration:"behaviourParams_gallery_horizontal_navigationDuration",loop:"behaviourParams_gallery_horizontal_loop",autoSlide:{behaviour:"behaviourParams_gallery_horizontal_autoSlide_behaviour",interval:"behaviourParams_gallery_horizontal_autoSlide_interval",pauseOnHover:"behaviourParams_gallery_horizontal_autoSlide_pauseOnHover",speed:"behaviourParams_gallery_horizontal_autoSlide_speed"},slideshowInfo:{buttonsAlignment:"behaviourParams_gallery_horizontal_slideshowInfo_buttonsAlignment",enableCounter:"behaviourParams_gallery_horizontal_slideshowInfo_enableCounter",enablePlayButton:"behaviourParams_gallery_horizontal_slideshowInfo_enablePlayButton"}}}},stylingParams:{arrowsColor:"stylingParams_arrowsColor",itemShadowBlur:"stylingParams_itemShadowBlur",itemShadowDirection:"stylingParams_itemShadowDirection",itemShadowOpacityAndColor:"stylingParams_itemShadowOpacityAndColor",itemShadowSize:"stylingParams_itemShadowSize",itemEnableShadow:"stylingParams_itemEnableShadow",itemBorderRadius:"stylingParams_itemBorderRadius",itemBorderWidth:"stylingParams_itemBorderWidth",itemResolutionMode:"stylingParams_itemResolutionMode"}};var d=[["galleryLayout",c.layoutParams.structure.galleryLayout],["imageMargin",c.layoutParams.structure.itemSpacing],["groupsPerStrip",c.layoutParams.groups.numberOfGroupsPerRow],["cubeImages",c.layoutParams.crop.enable],["smartCrop",c.layoutParams.crop.enableSmartCrop],["cropOnlyFill",c.layoutParams.crop.cropOnlyFill],["minItemSize",c.layoutParams.targetItemSize.minimum],["scatter",c.layoutParams.structure.scatter.randomScatter],["rotatingScatter",c.layoutParams.structure.scatter.manualScatter],["numberOfImagesPerCol",c.layoutParams.structure.numberOfGridRows],["collageDensity",c.layoutParams.groups.density],["chooseBestGroup",c.layoutParams.groups.groupByOrientation],["groupSize",c.layoutParams.groups.groupSize],["hasThumbnails",c.layoutParams.thumbnails.enable],["thumbnailSpacings",c.layoutParams.thumbnails.spacing],["thumbnailSize",c.layoutParams.thumbnails.size],["showArrows",c.layoutParams.navigationArrows.enable],["arrowsPadding",c.layoutParams.navigationArrows.padding],["arrowsVerticalPosition",c.layoutParams.navigationArrows.verticalAlignment],["arrowsSize",c.layoutParams.navigationArrows.size],["imageInfoType",c.layoutParams.info.layout],["textImageSpace",c.layoutParams.info.spacing],["textBoxBorderWidth",c.layoutParams.info.border.width],["textBoxBorderColor",c.layoutParams.info.border.color],["textBoxBorderRadius",c.layoutParams.info.border.radius]],h=[["useMaxDimensions",c.layoutParams.structure.enableStreching]],p=[["magnificationLevel",c.behaviourParams.item.content.magnificationValue],["videoLoop",c.behaviourParams.item.video.loop],["showVideoPlayButton",c.behaviourParams.item.video.enablePlayButton],["showVideoControls",c.behaviourParams.item.video.enableControls],["enableVideoPlaceholder",c.behaviourParams.item.video.enablePlaceholder],["overlayAnimation",c.behaviourParams.item.overlay.hoverAnimation],["overlayPosition",c.behaviourParams.item.overlay.position],["overlaySize",c.behaviourParams.item.overlay.size],["overlaySizeType",c.behaviourParams.item.overlay.sizeUnits],["overlayPadding",c.behaviourParams.item.overlay.padding],["imageHoverAnimation",c.behaviourParams.item.content.hoverAnimation],["imagePlacementAnimation",c.behaviourParams.item.content.placementAnimation],["imageLoadingMode",c.behaviourParams.item.content.loader],["scrollSnap",c.behaviourParams.gallery.horizontal.enableScrollSnap],["scrollAnimation",c.behaviourParams.gallery.scrollAnimation],["shouldIndexDirectShareLinkInSEO",c.behaviourParams.gallery.enableIndexingShareLinks],["loadMoreButtonText",c.behaviourParams.gallery.vertical.loadMore.text],["slideAnimation",c.behaviourParams.gallery.horizontal.slideAnimation],["slideTransition",c.behaviourParams.gallery.horizontal.slideTransition],["scrollDuration",c.behaviourParams.gallery.horizontal.navigationDuration],["slideshowLoop",c.behaviourParams.gallery.horizontal.loop],["autoSlideshowInterval",c.behaviourParams.gallery.horizontal.autoSlide.interval],["pauseAutoSlideshowOnHover",c.behaviourParams.gallery.horizontal.autoSlide.pauseOnHover],["autoSlideshowContinuousSpeed",c.behaviourParams.gallery.horizontal.autoSlide.speed],["allowSlideshowCounter",c.behaviourParams.gallery.horizontal.slideshowInfo.enableCounter],["playButtonForAutoSlideShow",c.behaviourParams.gallery.horizontal.slideshowInfo.enablePlayButton]],g=[["enableInfiniteScroll",c.behaviourParams.gallery.vertical.loadMore.enable],["allowContextMenu",c.behaviourParams.gallery.blockContextMenu],["enableScroll",c.behaviourParams.gallery.horizontal.blockScroll]],m=[["itemShadowBlur",c.stylingParams.itemShadowBlur],["itemShadowDirection",c.stylingParams.itemShadowDirection],["itemShadowOpacityAndColor",c.stylingParams.itemShadowOpacityAndColor],["arrowsColor",c.stylingParams.arrowsColor],["itemShadowSize",c.stylingParams.itemShadowSize],["itemEnableShadow",c.stylingParams.itemEnableShadow],["itemBorderRadius",c.stylingParams.itemBorderRadius],["itemBorderWidth",c.stylingParams.itemBorderWidth]];function f(e,t){for(var r=(0,i.__assign)({},e),n=0,o=t;n=-3?e.galleryLayout:null===(r=null===(t=e.layoutParams)||void 0===t?void 0:t.structure)||void 0===r?void 0:r.galleryLayout})?(i=v(i,c.layoutParams.info.height,"slideshowInfoSize")).textBoxHeight=i.slideshowInfoSize:(i=v(i,c.layoutParams.info.height,"textBoxHeight")).slideshowInfoSize=i.textBoxHeight,i}(s=function(e){var t=e;return t.layoutParams_gallerySpacing=t.galleryMargin=t.layoutParams_structure_gallerySpacing,delete t.layoutParams_structure_gallerySpacing,t}(s=function(e){var t=e;return t.groupTypes=t[c.layoutParams.groups.allowedGroupTypes]?t[c.layoutParams.groups.allowedGroupTypes].join?t[c.layoutParams.groups.allowedGroupTypes].join(","):"":void 0,delete t[c.layoutParams.groups.allowedGroupTypes],t}(s=function(e){var t=e,r=t[c.layoutParams.groups.repeatingGroupTypes]&&t[c.layoutParams.groups.repeatingGroupTypes].join(",");return t.layoutParams_repeatingGroupTypes=t.rotatingGroupTypes=r,delete t[c.layoutParams.groups.repeatingGroupTypes],t}(s=function(e){var t,r=e;return(r=v(r,c.layoutParams.crop.method,"cubeType")).cubeType=null===(t=r.cubeType)||void 0===t?void 0:t.toLowerCase(),r}(s=function(e){var t=e;return(t=v(t,c.layoutParams.structure.columnRatios,"columnWidths")).columnWidths=t.columnWidths?t.columnWidths.join?t.columnWidths.join(","):"":void 0,t}(s=function(e){var t=e;switch((t=v(t,c.layoutParams.info.sizeUnits,"calculateTextBoxWidthMode")).calculateTextBoxWidthMode){case"PERCENT":t.calculateTextBoxWidthMode="PERCENT",(t=v(t,c.layoutParams.info.width,"textBoxWidthPercent")).textBoxWidth=t.textBoxWidth||200;break;case"PIXEL":t.calculateTextBoxWidthMode="MANUAL",(t=v(t,c.layoutParams.info.width,"textBoxWidth")).textBoxWidthPercent=t.textBoxWidthPercent||50}return t}(s=function(e){var t,r=e,n=r[c.layoutParams.crop.ratios]&&(0,i.__spreadArrays)(r[c.layoutParams.crop.ratios]),o=n||[];return t=o.length>1?o.slice(0).join(","):0===(null==n?void 0:n.length)?"":void 0,r.layoutParams_cropRatio=r.cubeRatio=o[0],r.rotatingCropRatios=t,delete r[c.layoutParams.crop.ratios],r}(s=function(e){var t=e;return"CENTER"===(t=v(t,c.layoutParams.crop.alignment,"cubeFitPosition")).cubeFitPosition&&(t.cubeFitPosition="MIDDLE"),t}(s=function(e){var t=e,r=t[c.layoutParams.targetItemSize.value],i=t.gallerySizeType,n={smart:"gallerySize",px:"gallerySizePx",ratio:"gallerySizeRatio"};return t.gallerySize=t.gallerySizePx=t.gallerySizeRatio=void 0,t[n[i]]=r,delete t[c.layoutParams.targetItemSize.value],t}(s=function(e){var t=e;switch((t=v(t,c.layoutParams.targetItemSize.unit,"gallerySizeType")).gallerySizeType){case"PIXEL":t.gallerySizeType="px";break;case"PERCENT":t.gallerySizeType="ratio";break;case"SMART":t.gallerySizeType="smart"}return t}(s=function(e){var t=e;return t.fixedColumns=t.fixedColumns||void 0,t.numberOfImagesPerRow=t[c.layoutParams.structure.numberOfColumns],delete t[c.layoutParams.structure.numberOfColumns],t}(s=function(e){var t=e;switch((t=v(t,c.layoutParams.structure.responsiveMode,"gridStyle")).gridStyle){case"FIT_TO_SCREEN":t.gridStyle=0;break;case"SET_ITEMS_PER_ROW":t.gridStyle=1}return t}(s=function(e){var t=e;switch((t=v(t,c.layoutParams.structure.groupsOrder,"placeGroupsLtr")).placeGroupsLtr){case"LEFT_TO_RIGHT":t.placeGroupsLtr=!0;break;case"RIGHT_TO_LEFT":case"BY_HEIGHT":t.placeGroupsLtr=!1;break;default:t.placeGroupsLtr=void 0}return t}(s=function(e){var t=e;switch((t=v(t,c.layoutParams.structure.layoutOrientation,"isVertical")).isVertical){case"VERTICAL":t.isVertical=!0;break;case"HORIZONTAL":t.isVertical=!1}return t}(s=function(e){var t=e;switch((t=v(t,c.layoutParams.structure.scrollDirection,"scrollDirection")).scrollDirection){case"VERTICAL":t.scrollDirection=0;break;case"HORIZONTAL":t.scrollDirection=1}return t}((t=s=y(s,(0,i.__spreadArrays)(h).map((function(e){return(0,i.__spreadArrays)(e).reverse()}))),(n=v(n=t,c.layoutParams.thumbnails.alignment,"galleryThumbnailsAlignment")).galleryThumbnailsAlignment=null===(r=n.galleryThumbnailsAlignment)||void 0===r?void 0:r.toLowerCase(),s=n)))))))))))))))))),(0,i.__spreadArrays)(p).map((function(e){return(0,i.__spreadArrays)(e).reverse()}))),s=f(s=function(e){var t,r=e;return(r=v(r,c.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment,"galleryTextAlign")).galleryTextAlign=null===(t=r.galleryTextAlign)||void 0===t?void 0:t.toLowerCase(),r}(s=function(e){var t=e;switch(t[c.behaviourParams.gallery.horizontal.autoSlide.behaviour]){case"OFF":t.isAutoSlideshow=!1,t.autoSlideshowType="interval";break;case"INTERVAL":t.isAutoSlideshow=!0,t.autoSlideshowType="interval";break;case"CONTINUOUS":t.isAutoSlideshow=!0,t.autoSlideshowType="continuous"}return delete t[c.behaviourParams.gallery.horizontal.autoSlide.behaviour],t}(s=function(e){var t,r=e;return(r=v(r,c.behaviourParams.gallery.vertical.loadMore.amount,"loadMoreAmount")).loadMoreAmount=null===(t=r.loadMoreAmount)||void 0===t?void 0:t.toLowerCase(),r}(s=function(e){var t=e;switch((t=v(t,c.behaviourParams.gallery.layoutDirection,"isRTL")).isRTL){case"RIGHT_TO_LEFT":t.isRTL=!0;break;case"LEFT_TO_RIGHT":t.isRTL=!1}return t}(s=function(e){var t=e;switch((t=v(t,c.layoutParams.info.placement,"titlePlacement")).titlePlacement){case"OVERLAY":t.titlePlacement="SHOW_ON_HOVER";break;case"BELOW":t.titlePlacement="SHOW_BELOW";break;case"ABOVE":t.titlePlacement="SHOW_ABOVE";break;case"RIGHT":t.titlePlacement="SHOW_ON_THE_RIGHT";break;case"LEFT":t.titlePlacement="SHOW_ON_THE_LEFT";break;case"ALTERNATE_HORIZONTALLY":t.titlePlacement="ALTERNATE_HORIZONTAL";break;case"ALTERNATE_VERTICALLY":t.titlePlacement="ALTERNATE_VERTICAL"}return t}(s=function(e){var t=e;switch((t=v(t,c.behaviourParams.item.overlay.hoveringBehaviour,"hoveringBehaviour")).hoveringBehaviour){case"ALWAYS_VISIBLE":t.hoveringBehaviour="NO_CHANGE";break;case"NEVER_VISIBLE":t.hoveringBehaviour="NEVER_SHOW"}return t}(s=function(e){var t=e;return(t=v(t,c.behaviourParams.item.video.speed,"videoSpeed")).videoSpeed=t.videoSpeed>=0?String(t.videoSpeed):void 0,t}(s=function(e){var t=e;return(t=v(t,c.behaviourParams.item.video.volume,"videoSound")).videoSound=void 0===t.videoSound?void 0:!!t.videoSound,t}(s=function(e){var t=e;switch((t=v(t,c.behaviourParams.item.video.playTrigger,"videoPlay")).videoPlay){case"CLICK":t.videoPlay="onClick";break;case"HOVER":t.videoPlay="hover";break;case"AUTO":t.videoPlay="auto"}return t}(s=function(e){var t,r=e;return"action"===((r=v(r,c.behaviourParams.item.clickAction,"itemClick")).itemClick=null===(t=r.itemClick)||void 0===t?void 0:t.toLowerCase(),r.itemClick)&&(r.itemClick="expand"),r}(s=y(s,(0,i.__spreadArrays)(g).map((function(e){return(0,i.__spreadArrays)(e).reverse()}))))))))))))),(0,i.__spreadArrays)(m).map((function(e){return(0,i.__spreadArrays)(e).reverse()}))));return(0,i.__assign)((0,i.__assign)({},(0,l.v5)(a)),(0,l.v5)(e))}function P(e){var t=S(function(e){var t=(a=e,b=(0,i.__assign)({},a),b=f(b,d),b=f(b=function(e){var t=e;switch((t=v(t,"arrowsPosition",c.layoutParams.navigationArrows.position))[c.layoutParams.navigationArrows.position]){case 0:t[c.layoutParams.navigationArrows.position]="ON_GALLERY";break;case 1:t[c.layoutParams.navigationArrows.position]="OUTSIDE_GALLERY";break;case 2:t[c.layoutParams.navigationArrows.position]="MOUSE_CURSOR"}return t}(b=function(e){var t=e;return delete(t=(0,u.L)("SLIDESHOW")({galleryLayout:e.galleryLayout>=-3?e.galleryLayout:e[c.layoutParams.structure.galleryLayout]})?v(t,"slideshowInfoSize",c.layoutParams.info.height):v(t,"textBoxHeight",c.layoutParams.info.height)).slideshowInfoSize,delete t.textBoxHeight,t}(b=function(e){if(void 0!==e[c.layoutParams.structure.gallerySpacing])return e;var t,r=e;return r["layoutParams.gallerySpacing"]>=0?t=r["layoutParams.gallerySpacing"]:r.galleryMargin>=0&&(t=r.galleryMargin),r[c.layoutParams.structure.gallerySpacing]=t,delete r.layoutParams_gallerySpacing,delete r.galleryMargin,r}(b=function(e){var t=e;switch((t=v(t,"gridStyle",c.layoutParams.structure.responsiveMode))[c.layoutParams.structure.responsiveMode]){case 0:t[c.layoutParams.structure.responsiveMode]="FIT_TO_SCREEN";break;case 1:t[c.layoutParams.structure.responsiveMode]="SET_ITEMS_PER_ROW"}return t}(b=function(e){var t,r=e;return(r=v(r,"cubeType",c.layoutParams.crop.method))[c.layoutParams.crop.method]=null===(t=r[c.layoutParams.crop.method])||void 0===t?void 0:t.toUpperCase(),r}(b=function(e){var t,r,n,o=e;return o=v(o,"columnWidths",c.layoutParams.structure.columnRatios),0===(null===(t=o[c.layoutParams.structure.columnRatios])||void 0===t?void 0:t.length)?o[c.layoutParams.structure.columnRatios]=[]:o[c.layoutParams.structure.columnRatios]=o[c.layoutParams.structure.columnRatios]?(null===(r=o[c.layoutParams.structure.columnRatios])||void 0===r?void 0:r.split)?(0,i.__spreadArrays)(null===(n=o[c.layoutParams.structure.columnRatios])||void 0===n?void 0:n.split(",").map(Number)):o[c.layoutParams.structure.columnRatios]:void 0,o}(b=function(e){var t=e;switch((t=v(t,"calculateTextBoxWidthMode",c.layoutParams.info.sizeUnits))[c.layoutParams.info.sizeUnits]){case"PERCENT":t[c.layoutParams.info.sizeUnits]="PERCENT",delete(t=v(t,"textBoxWidthPercent",c.layoutParams.info.width)).textBoxWidth;break;case"MANUAL":t[c.layoutParams.info.sizeUnits]="PIXEL",delete(t=v(t,"textBoxWidth",c.layoutParams.info.width)).textBoxWidthPercent}return t}(b=function(e){if(void 0!==e[c.layoutParams.crop.ratios])return e;var t,r=e,i=r.rotatingCropRatios,n=r.cubeRatio||r.layoutParams_cropRatio;t="string"==typeof i&&""!==i?i:n;var o=function(e){return Number(e)>=0?Number(e):e};return r[c.layoutParams.crop.ratios]=t&&String(t).split(",").map(o),delete r.cubeRatio,delete r.layoutParams_cropRatio,delete r.rotatingCropRatios,r}(b=function(e){var t=e;return"MIDDLE"===(t=v(t,"cubeFitPosition",c.layoutParams.crop.alignment))[c.layoutParams.crop.alignment]&&(t[c.layoutParams.crop.alignment]="CENTER"),t}(b=function(e){var t,r=e;switch(r[c.layoutParams.targetItemSize.unit]){case"PIXEL":t="gallerySizePx";break;case"SMART":t="gallerySize";break;case"PERCENT":t="gallerySizeRatio"}return delete(r=v(r,t,c.layoutParams.targetItemSize.value)).gallerySizePx,delete r.gallerySizeRatio,delete r.gallerySize,r}(b=function(e){var t=e;switch((t=v(t,"gallerySizeType",c.layoutParams.targetItemSize.unit))[c.layoutParams.targetItemSize.unit]){case"px":t[c.layoutParams.targetItemSize.unit]="PIXEL";break;case"ratio":t[c.layoutParams.targetItemSize.unit]="PERCENT";break;case"smart":t[c.layoutParams.targetItemSize.unit]="SMART"}return t}(b=function(e){if(void 0!==e[c.layoutParams.structure.numberOfColumns])return e;var t=e,r=e.fixedColumns,i=e.numberOfImagesPerRow,n=i>=0?i:r>=0?r:void 0;return t[c.layoutParams.structure.numberOfColumns]=n,delete t.fixedColumns,delete t.numberOfImagesPerRow,t}(b=function(e){var t;if(void 0!==e[c.layoutParams.groups.allowedGroupTypes])return e;var r=e;return r[c.layoutParams.groups.allowedGroupTypes]=(null===(t=r.groupTypes)||void 0===t?void 0:t.split)?r.groupTypes.split(","):r.groupTypes?r.groupTypes:void 0,delete r.groupTypes,r}(b=function(e){if(void 0!==e[c.layoutParams.groups.repeatingGroupTypes])return e;var t,r=e,i=r.rotatingGroupTypes||r.layoutParams_repeatingGroupTypes;return t="string"==typeof i&&""!==i?i.split(","):"string"==typeof i&&""===i?[]:void 0,r[c.layoutParams.groups.repeatingGroupTypes]=t,delete r.layoutParams_repeatingGroupTypes,delete r.rotatingGroupTypes,r}(b=function(e){var t=e;switch((t=v(t,"placeGroupsLtr",c.layoutParams.structure.groupsOrder))[c.layoutParams.structure.groupsOrder]){case!0:t[c.layoutParams.structure.groupsOrder]="LEFT_TO_RIGHT";break;case!1:t[c.layoutParams.structure.groupsOrder]="BY_HEIGHT"}return t}(b=function(e){var t=e;switch((t=v(t,"isVertical",c.layoutParams.structure.layoutOrientation))[c.layoutParams.structure.layoutOrientation]){case!0:t[c.layoutParams.structure.layoutOrientation]="VERTICAL";break;case!1:t[c.layoutParams.structure.layoutOrientation]="HORIZONTAL"}return t}(b=function(e){var t=e;switch((t=v(t,"scrollDirection",c.layoutParams.structure.scrollDirection))[c.layoutParams.structure.scrollDirection]){case 0:t[c.layoutParams.structure.scrollDirection]="VERTICAL";break;case 1:t[c.layoutParams.structure.scrollDirection]="HORIZONTAL"}return t}((n=b=y(b,h),s=n,(s=v(s,"galleryThumbnailsAlignment",c.layoutParams.thumbnails.alignment))[c.layoutParams.thumbnails.alignment]=null===(o=s[c.layoutParams.thumbnails.alignment])||void 0===o?void 0:o.toUpperCase(),b=s)))))))))))))))))),p),delete(b=f(b=function(e){var t,r=e;return(r=v(r,"galleryTextAlign",c.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment))[c.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment]=null===(t=r[c.behaviourParams.gallery.horizontal.slideshowInfo.buttonsAlignment])||void 0===t?void 0:t.toUpperCase(),r}(b=function(e){if(void 0!==e[c.behaviourParams.gallery.horizontal.autoSlide.behaviour])return e;var t,r=e,i=r.isAutoSlideshow,n=r.autoSlideshowType;return t=void 0===i?void 0:i?"interval"===n?"INTERVAL":"CONTINUOUS":"OFF",r[c.behaviourParams.gallery.horizontal.autoSlide.behaviour]=t,delete r.isAutoSlideshow,delete r.autoSlideshowType,r}(b=function(e){var t,r=e;return(r=v(r,"loadMoreAmount",c.behaviourParams.gallery.vertical.loadMore.amount))[c.behaviourParams.gallery.vertical.loadMore.amount]=null===(t=r[c.behaviourParams.gallery.vertical.loadMore.amount])||void 0===t?void 0:t.toUpperCase(),r}(b=function(e){var t=e;switch((t=v(t,"isRTL",c.behaviourParams.gallery.layoutDirection))[c.behaviourParams.gallery.layoutDirection]){case!0:t[c.behaviourParams.gallery.layoutDirection]="RIGHT_TO_LEFT";break;case!1:t[c.behaviourParams.gallery.layoutDirection]="LEFT_TO_RIGHT"}return t}(b=function(e){var t=e;switch((t=v(t,"titlePlacement",c.layoutParams.info.placement))[c.layoutParams.info.placement]){case"SHOW_ON_HOVER":t[c.layoutParams.info.placement]="OVERLAY";break;case"SHOW_BELOW":t[c.layoutParams.info.placement]="BELOW";break;case"SHOW_ABOVE":t[c.layoutParams.info.placement]="ABOVE";break;case"SHOW_ON_THE_RIGHT":t[c.layoutParams.info.placement]="RIGHT";break;case"SHOW_ON_THE_LEFT":t[c.layoutParams.info.placement]="LEFT";break;case"ALTERNATE_HORIZONTAL":t[c.layoutParams.info.placement]="ALTERNATE_HORIZONTALLY";break;case"ALTERNATE_VERTICAL":t[c.layoutParams.info.placement]="ALTERNATE_VERTICALLY"}return t}(b=function(e){var t=e;switch((t=v(t,"hoveringBehaviour",c.behaviourParams.item.overlay.hoveringBehaviour))[c.behaviourParams.item.overlay.hoveringBehaviour]){case"NO_CHANGE":t[c.behaviourParams.item.overlay.hoveringBehaviour]="ALWAYS_VISIBLE";break;case"NEVER_SHOW":t[c.behaviourParams.item.overlay.hoveringBehaviour]="NEVER_VISIBLE"}return t}(b=function(e){var t=e;return(t=v(t,"videoSpeed",c.behaviourParams.item.video.speed))[c.behaviourParams.item.video.speed]=Number(t[c.behaviourParams.item.video.speed])>=0?Number(t[c.behaviourParams.item.video.speed]):void 0,t}(b=function(e){var t=e;return void 0!==(t=v(t,"videoSound",c.behaviourParams.item.video.volume))[c.behaviourParams.item.video.volume]&&(t[c.behaviourParams.item.video.volume]=Number(t[c.behaviourParams.item.video.volume])),t}(b=function(e){var t,r=e;return(r=v(r,"videoPlay",c.behaviourParams.item.video.playTrigger))[c.behaviourParams.item.video.playTrigger]=null===(t=r[c.behaviourParams.item.video.playTrigger])||void 0===t?void 0:t.toUpperCase(),r}(b=function(e){var t,r=e;switch((r=v(r,"itemClick",c.behaviourParams.item.clickAction))[c.behaviourParams.item.clickAction]=null===(t=r[c.behaviourParams.item.clickAction])||void 0===t?void 0:t.toUpperCase(),r[c.behaviourParams.item.clickAction]){case"FULLSCREEN":case"EXPAND":r[c.behaviourParams.item.clickAction]="ACTION"}return r}(b=y(b,g))))))))))),m)).enableLeanGallery,delete b.fullscreen,delete b.magicLayoutSeed,b),r=(0,i.__assign)((0,i.__assign)({},(0,l.v5)(t)),(0,l.v5)(e));var n,o,s;var a,b;return delete r.oldRefactoredOptionInCore,r}((0,l.FX)(e)));return(0,l.Tx)(t)}var w=new(function(){function e(){this._hash2int={}}return e.prototype.stripSlashes=function(e){var t="";return"string"==typeof e&&(t=e.replace(/\\\//g,"/").replace(/\\'/g,"'").replace(/\\"/g,'"').replace(/\\0/g,"\0").replace(/\\\\/g,"\\")),t},e.prototype.parseStringObject=function(e){if("string"!=typeof e)return e;var t=this.stripSlashes(e);if("string"==typeof e&&/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))try{return JSON.parse(t)}catch(e){}return t},e.prototype.hashToInt=function(e,t,r){var i=0;if(void 0===e||0===e.length)return i;if(!this._hash2int[e]){for(var n=0;n=0&&!(e.galleryWidth>=0)&&(r.galleryWidth=e.width+2*((t.imageMargin/2||0)-(t.layoutParams.gallerySpacing||0)),delete r.width),e.height>=0&&!(e.galleryHeight>=0)&&(r.galleryHeight=e.height+((t.imageMargin/2||0)-(t.layoutParams.gallerySpacing||0)),delete r.height),t.externalInfoHeight>=0&&1===t.scrollDirection&&(r.galleryHeight-=t.externalInfoHeight),r},e}()),_=function(){function e(e){if(this.style={},this.visibility={},(e=e||{}).dto||(console.error("Item has no DTO",e),e.dto={}),this.config=e,this.dto=e.dto,this.idx=e.idx,this.inGroupIdx=e.inGroupIdx,this.container=e.container,this.cubeType="fill",e.styleParams){var t=e.styleParams;this.cubeType=t.cubeType,this.cubeImages=t.cubeImages,this._cropRatio=t.layoutParams.cropRatio,this.rotatingCropRatios=t.rotatingCropRatios,this.smartCrop=t.smartCrop,this.cropOnlyFill=t.cropOnlyFill,this.imageMargin=t.imageMargin,this.gallerySpacing=t.layoutParams.gallerySpacing,this.scatter=t.scatter,this.rotatingScatter=t.rotatingScatter,this.smartCrop=t.smartCrop,this.useMaxDimensions=t.useMaxDimensions&&"text"!==this.itemType,this.cubeFitPosition=t.cubeFitPosition}this._groupOffset={top:0,left:0,right:0,bottom:0},this._group={},this.calcPinOffset=function(){return 0},this.resize(1)}return e.prototype.fixMetadataVerticalVideoRatio=function(e){if(e.qualities&&e.qualities[0]){var t=e.qualities,r=t[t.length-1],i=r.height,n=r.width;e.height=i,e.width=n}},e.prototype.resize=function(e){var t=1;if(!1!==e){if(e>0)t=e;else if("object"==typeof e){if(e.width)t=Math.max(1,e.width)/this.width;else if(e.height){t=Math.max(1,e.height)/this.height}}return this.width*=t,this.height*=t,this.resized=!0,this}},e.prototype.pinToCorner=function(e,t){var r=this;void 0===t&&(t=!1);var i=e.indexOf("top")>=0,n=e.indexOf("left")>=0;this.style.top=i?0:"auto",this.style.bottom=i?"auto":0,this.style.left=n?0:"auto",this.style.right=n?"auto":0,this.pin=e,this.isPinnedTop=i,this.isPinnedLeft=n,this.pinAfter=t,this.pinAfterType=i?"top":n?"left":"",this.calcPinOffset=function(e,t){if(r.pinAfter){if(r.pin===t){var i=r.imageMargin/2;return"top"===t?r.pinAfter.height+2*i:"left"===t?r.pinAfter.width+2*i:0}return 0}return 0}},e.prototype.setPosition=function(e){this.style.position=e},e.prototype.getPosition=function(e){return parseInt(e,10)>=0?e:"auto"},e.prototype.calcScatter=function(e){var t=this.imageMargin/2,r=this.gallerySpacing,i=e.left>0?t:r,n=this.container.galleryWidth-e.right>2*t?t:r,o=e.top>0?t:r,s=this.container.galleryHeight-e.bottom>2*t?t:r;if(!(this.rotatingScatter.length>0)){if(this.scatter>0){var a=this.scatter/100*.4;l=w.hashToRandomInt(this.seed+e.right+"x",-i,n);l*=this.scatter/100,l*=1-a,l+=(l>0?a*n:a*i)*Math.sign(l),l=Math.round(l);u=w.hashToRandomInt(this.seed+e.right+"y",-o,s);return u*=this.scatter/100,u*=1-a,u+=(u>0?a*s:a*o)*Math.sign(u),{x:l,y:u=Math.round(u)}}return{x:0,y:0}}try{var l,u,c=this.rotatingScatter.split(","),d=c[this.idx%c.length].split("/").map((function(e){return parseInt(e)})).map((function(e){return e/100})),h=d[0],p=d[1];return{x:l=h*(h>0?n:i),y:u=p*(p>0?s:o)}}catch(e){console.error("Cannot calculate rotating scatter",e)}},Object.defineProperty(e.prototype,"top",{get:function(){return this.getPosition(this.style.top)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.getPosition(this.style.left)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.getPosition(this.style.right)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.getPosition(this.style.bottom)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"group",{get:function(){return this._group},set:function(e){Object.assign(this._group,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupOffset",{set:function(e){Object.assign(this._groupOffset,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){var e,t={top:this._groupOffset.top+(this.isPinnedTop?this.calcPinOffset(this._group.height,"top"):this._group.height-this.outerHeight)||0,left:this._groupOffset.left+(this.isPinnedLeft?this.calcPinOffset(this._group.width,"left"):this._group.width-this.outerWidth)||0},r=this.dimensions,i=r.fixTop,n=void 0===i?0:i,o=r.fixLeft,s=void 0===o?0:o,a=r.fixRight,l=void 0===a?0:a,u=r.fixBottom,c=void 0===u?0:u;if(t.innerTop=n,t.innerLeft=s,t.innerRight=l,t.innerBottom=c,t.right=t.left+this.width,t.bottom=t.top+this.height,this.scatter>0||(null===(e=this.rotatingScatter)||void 0===e?void 0:e.length)>0){var d=this.calcScatter(t),h=d.x,p=d.y;t.left+=h,t.top+=p,t.right=t.left+this.width,t.bottom=t.top+this.height}return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.dto.id||this.dto.photoId||this.dto.itemId},set:function(e){this.dto.itemId=this.dto.photoId=this.dto.id=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.dto.hash||this.dto.mediaUrl||this.dto.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.dto.seed||w.hashToInt(this.hash)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this.dto.metadata||this.dto.metaData||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemType",{get:function(){return this.metadata.type||"image"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this.dto.width||this.dto.w},set:function(e){this.dto.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outerWidth",{get:function(){return this.width+2*this.margins},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"infoWidth",{get:function(){return this.Group?this.Group.infoWidth:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orgWidth",{get:function(){return this.style.orgWidth||this.dto.width||this.dto.w||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var e;return e=this.cubeImages&&this.ratio>=this.cropRatio?this.style.cubedWidth||this.orgHeight*this.cropRatio:this.orgWidth,Math.max(e,1)},set:function(e){this.style.cubedWidth=this.style.orgWidth=this.style.width=Math.max(1,e);var t=this.dimensions,r=t.fixLeft,i=void 0===r?0:r,n=t.fixRight,o=void 0===n?0:n;this.style.innerWidth=this.style.width-i-o},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"outerHeight",{get:function(){return this.height+2*this.margins},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orgHeight",{get:function(){return this.style.orgHeight||this.dto.height||this.dto.h||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var e;return e=this.cubeImages&&this.ratio=this.cropRatio;t?n(o,this.ratio):this.useMaxDimensions&&(this.width>this.maxWidth||this.height>this.maxHeight)&&(this.cubeImages?n(!o,this.cropRatio):n(!o,this.ratio));var s={fixTop:(this.height-i)/2,fixLeft:(this.width-r)/2,fixRight:(this.width-r)/2,fixBottom:(this.height-i)/2};switch(this.cubeFitPosition){case"TOP":s.fixTop=0,s.fixBottom*=2;break;case"BOTTOM":s.fixTop*=2,s.fixBottom=0;break;case"LEFT":s.fixLeft=0,s.fixRight*=2;break;case"RIGHT":s.fixLeft*=2,s.fixRight=0}return s},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cropRatio",{get:function(){var e,t=this;if(this.rotatingCropRatio)e=this.rotatingCropRatio;else if(this.rotatingCropRatios&&this.rotatingCropRatios.length>0){var r=String(this.rotatingCropRatios).split(",");e=this.rotatingCropRatio=r[this.idx%r.length]}if(e||"function"!=typeof this._cropRatio||(e=this._cropRatio()),!e&&this.cropOnlyFill&&"fit"===this.cubeType&&(e=this.ratio),e||(e=this._cropRatio||this.ratio),null!==this.dynamicCropRatios&&"string"==typeof e){if(!this.dynamicCropRatios){var i=/^\d*\.?\d*(%|px)\/\d*\.?\d*(%|px)$/.exec(e);this.dynamicCropRatios=i?e.split("/").map((function(e,t){return e.indexOf("%")>0?{type:"%",val:parseFloat(e.replace("%",""))/100,dim:0===t?"galleryWidth":"galleryHeight"}:{type:"px",val:parseInt(e.replace("px",""))}})):null}if(this.dynamicCropRatios){var n=this.dynamicCropRatios.map((function(e){if("%"===e.type){var r=t.container[e.dim]+("galleryHeight"===e.dim?t.imageMargin/2:0);return e.val*r-t.imageMargin}return e.val}));e=n[0]/n[1]}}return e=Number(e),!0===this.smartCrop&&(e=this.isPortrait?Math.min(e,1/e):Math.max(e,1/e)),"min"===this.cubeType?e=Math.max(e,this.orgRatio):"max"===this.cubeType&&(e=Math.min(e,this.orgRatio)),e},set:function(e){"number"==typeof this._cropRatio&&(this._cropRatio=e,this.style.cubedHeight=this.style.cubedWidth=0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.ratio<.999?"portrait":"landscape"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPortrait",{get:function(){return"portrait"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLandscape",{get:function(){return"landscape"===this.orientation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ratio",{get:function(){return this.orgRatio||(this.orgRatio=this.orgWidth/this.orgHeight),this.orgRatio},set:function(e){this.orgRatio=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundedStyle",{get:function(){return(0,i.__assign)((0,i.__assign)({},this.style),{width:Math.round(this.style.width),height:Math.round(this.style.height)})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{id:this.id,idx:this.idx,inGroupIdx:this.inGroupIdx,dto:this.dto,type:this.type,style:this.style,roundedStyle:this.roundedStyle,width:this.width,maxWidth:this.maxWidth,outerWidth:this.outerWidth,infoWidth:this.infoWidth,margins:this.margins,ratio:this.ratio,dimensions:this.dimensions,cropRatio:this.cropRatio,isCropped:this.cubeImages,cropType:this.cubeType,height:this.height,maxHeight:this.maxHeight,outerHeight:this.outerHeight,infoHeight:this.infoHeight,group:this.group,offset:this.offset,groupOffset:this._groupOffset,orientation:this.orientation,isPortrait:this.isPortrait,isLandscape:this.isLandscape,visibility:this.visibility}},enumerable:!1,configurable:!0}),e}();const C=function(){function e(e){this.uniqueId=a.Z.generateUUID(),this.isGalleryItem=!0,this.createdBy=e.createdBy,this.createUrl=this.createUrl.bind(this),this.createMagnifiedUrl=this.createMagnifiedUrl.bind(this),this.createSecondMediaItemIfNeeded(e),this.update(e)}return e.prototype.createSecondMediaItemIfNeeded=function(t){var r;(null===(r=t.dto)||void 0===r?void 0:r.secondaryMedia)&&(this.secondaryMediaItem=new e(this.mapItemConfig(t)))},e.prototype.updateSecondaryMedia=function(e){this.secondaryMediaItem&&this.secondaryMediaItem.update(this.mapItemConfig(e))},e.prototype.mapItemConfig=function(e){var t={};return Object.assign(t,e.dto.secondaryMedia,e.dto.secondaryMedia.metadata),(0,i.__assign)((0,i.__assign)({},e),{dto:t,scheme:(0,i.__assign)((0,i.__assign)({},e.scheme),{maxHeight:t.height,maxWidth:t.width})})},e.prototype.update=function(e){if(this.createMediaUrl=e.createMediaUrl,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,a.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=(0,i.__assign)({},e.dto),e.scheme)this.processScheme(e.scheme);else{var t={};Object.assign(t,this.dto,this.metadata),this.processScheme(new _({dto:t}).scheme)}if(this.dto){var r=this.dto.metaData||this.dto.metadata;r&&(this.dto.metaData=a.Z.parseStringObject(r))}this.sharpParams=(0,i.__assign)({},e.sharpParams),this.sharpParams.quality||(this.sharpParams.quality=90),this.sharpParams.usm||(this.sharpParams.usm={}),this.thumbnailSize=e.thumbnailSize||120,this.resetUrls(),this.updateSharpParams(),this.updateSecondaryMedia(e)},e.prototype.processScheme=function(e){this.id=e.id,this.idx=e.idx,this.type=e.type,this.style=e.style,this.width=e.width,this.maxWidth=e.maxWidth,this.infoWidth=e.infoWidth,this.height=e.height,this.maxHeight=e.maxHeight,this.infoHeight=e.infoHeight,this.margins=e.margins,this.ratio=e.ratio,this.cropRatio=e.cropRatio,this.cubeImages=e.isCropped,this.cubeType=e.cropType||s.Z.resizeMethods.FILL,this.offset=e.offset,this.group=e.group,this.orientation=e.orientation,this.visibility=e.visibility},e.prototype.renderProps=function(e){var t=(0,i.__assign)({ratio:this.ratio,bgColor:this.bgColor,maxWidth:this.maxWidth,maxHeight:this.maxHeight,infoWidth:this.infoWidth,infoHeight:this.infoHeight,orientation:this.orientation},this.style),r=(0,i.__assign)({className:"image",key:this.key,idx:this.idx,photoId:this.photoId,id:this.id,hash:this.id,html:this.html,type:this.type,isVideoPlaceholder:this.isVideoPlaceholder,url:this.url,alt:this.alt,htmlContent:this.htmlContent,directLink:this.directLink,directShareLink:this.directShareLink,linkUrl:this.linkUrl,linkType:this.linkType,linkOpenType:this.linkOpenType,linkData:this.linkData,title:this.title,fileName:this.fileName,description:this.description,createUrl:this.createUrl,createMagnifiedUrl:this.createMagnifiedUrl,cubeImages:this.cubeImages,cubeType:this.cubeType,cropRatio:this.cropRatio,isTransparent:this.isTransparent,offset:this.offset,style:t,isDemo:this.isDemo,videoUrl:this.videoUrl,isExternalVideo:this.isExternalVideo,hasSecondaryMedia:this.hasSecondaryMedia},e);return this.hasSecondaryMedia&&(r.secondaryMediaItem=(0,i.__assign)((0,i.__assign)({},this.secondaryMediaItem.renderProps()),{style:(0,i.__assign)((0,i.__assign)({},t),{bgColor:this.secondaryMediaItem.bgColor})})),r},e.prototype.getDataForShop=function(){var e=this.focalPoint,t=this.metadata;return{isDemo:t.isDemo,orderIndex:this.orderIndex,itemId:this.dto.itemId,itemUrl:this.url,itemHeight:t.height,title:t.title,itemWidth:t.width,itemType:t.type||"image",imageUrl:this.processedMediaUrl(s.Z.resizeMethods.FIT,200,200,null,null).img(),imagePurchasedUrl:this.dto.mediaUrl,fpX:e[0],fpY:e[1]}},e.prototype.getHighestMp4Resolution=function(e){var t=e.filter((function(e){return"mp4"===e.formats[0]})).sort((function(e,t){return t.width-e.width}))[0];return{width:t.width,height:t.height}},e.prototype.processedMediaUrl=function(e,t,r,n,o){var l,u=this;void 0===o&&(o=!1);var c=function(e,t,r,i,n,s,l){var c;if(void 0===s&&(s=null),void 0===l&&(l=null),"function"==typeof u.createMediaUrl)try{var d=String(a.Z.hashCode(JSON.stringify({url:t,resizeMethod:r,requiredWidth:i,requiredHeight:n,sharpParams:s,focalPoint:l})));u._cachedUrls[d]||(u._cachedUrls[d]=u.createMediaUrl({item:e,originalUrl:t,resizeMethod:r,requiredWidth:i,requiredHeight:n,sharpParams:s,focalPoint:l,createMultiple:o})||""),c=u._cachedUrls[d]}catch(o){console.error("Cannot create url",o,e,t,r,i,n,s,l),c=String(t)}else c=String(t);return c};t=Math.ceil(t),r=Math.ceil(r);var d=e===s.Z.resizeMethods.FILL&&this.isCropped&&this.focalPoint,h={},p=this.url;return this.isText?Object.assign.apply(Object,(0,i.__spreadArrays)([{}],Object.values(s.Z.urlTypes).map((function(e){var t;return(t={})[e]=function(){return""},t})))):((this.isVideo||this.isVideoPlaceholder)&&(p=null===(l=this.poster)||void 0===l?void 0:l.url,a.Z.isExternalUrl(this.url)?h[s.Z.urlTypes.VIDEO]=function(){return u.url}:h[s.Z.urlTypes.VIDEO]=function(){return c(u,u.url,s.Z.resizeMethods.VIDEO,t,r)}),h[s.Z.urlTypes.HIGH_RES]=function(){return c(u,p,e,t,r,n,d)},h[s.Z.urlTypes.LOW_RES]=function(){return c(u,p,u.cubeImages&&e!==s.Z.resizeMethods.FIT?s.Z.resizeMethods.FILL:s.Z.resizeMethods.FIT,250,250,(0,i.__assign)((0,i.__assign)({},n),{quality:30,blur:30}),d)},h)},e.prototype.resetUrls=function(){var e=this.maxWidth||this.dto.width||this.metadata.width,t=this.maxHeight||this.dto.height||this.metadata.height;this.resizeWidth=Math.min(e,Math.ceil(this.width)),this.resizeHeight=Math.min(t,Math.ceil(this.height)),this._cachedUrls={},this.urls={}},e.prototype.createUrl=function(e,t){try{return this[e+"_url"][t]()}catch(e){return""}},e.prototype.createMagnifiedUrl=function(e){if(void 0===e&&(e=1),!this.urls.magnified_url){var t=this.style,r=t.innerWidth,i=t.innerHeight;this.urls.magnified_url=this.processedMediaUrl(this.cubeType,r*e,i*e,this.sharpParams,!0)}return this.urls.magnified_url[s.Z.urlTypes.HIGH_RES]()},Object.defineProperty(e.prototype,"resized_url",{get:function(){return this.urls.resized_url||(this.urls.resized_url=this.processedMediaUrl(this.cubeType,this.resizeWidth,this.resizeHeight,this.sharpParams)),this.urls.resized_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multi_url",{get:function(){return this.urls.multi_url||(this.urls.multi_url=this.processedMediaUrl(this.cubeType,this.resizeWidth,this.resizeHeight,this.sharpParams,!0)),this.urls.multi_url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaled_url",{get:function(){if(!this.urls.scaled_url){var e=this.maxWidth/this.maxHeight,t=this.resizeWidth/this.resizeHeight]*>/g,"").trim()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alt",{get:function(){return a.Z.isMeaningfulString(this.metadata.alt)&&this.metadata.alt||""},set:function(e){this.metadata.alt=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.metadata.title||""},set:function(e){this.metadata.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileName",{get:function(){return this.metadata.fileName||""},set:function(e){this.metadata.fileName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"description",{get:function(){return this.metadata.description||""},set:function(e){this.metadata.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exif",{get:function(){return this.metadata.exif||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasLink",{get:function(){return"wix"===this.linkType?!!this.linkData.type:!!this.linkUrl},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"link",{get:function(){return this.metadata.link||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkData",{get:function(){return this.metadata.link&&this.metadata.link.data?this.metadata.link.data:this.isWixUrl?{type:"web",url:this.linkUrl}:{}},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.data=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkType",{get:function(){return this.metadata.link&&!a.Z.isUndefined(this.metadata.link.type)?this.metadata.link.type:this.linkUrl?"web":"none"},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link={type:e,url:void 0,text:void 0,title:void 0,target:"_blank"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultLinkText",{get:function(){var e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Go to Link";switch(e.type){case"PageLink":return"Go to Page "+e.pageName;case"AnchorLink":return"Scroll to "+e.anchorName;case"ExternalLink":return""+e.url;case"EmailLink":return"Email "+e.recipient;case"PhoneLink":return"Call "+e.phoneNumber;case"DocumentLink":return"Open "+e.name;default:return"Go to Link"}case"web":return this.linkTitleFromUrl||this.linkUrl;case"page":return this.linkTitle;default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultLinkValue",{get:function(){var e=this.linkData;switch(this.linkType){case"wix":if(!e)return"Add a Link";switch(e.type){case"PageLink":return e.pageName?"PAGE - "+e.pageName:"PAGE";case"AnchorLink":return"ANCHOR - "+e.anchorName;case"ExternalLink":return"LINK - "+e.url;case"EmailLink":return"EMAIL - "+e.recipient;case"PhoneLink":return"PHONE - "+e.phoneNumber;case"DocumentLink":return"DOCUMENT - "+e.name;default:return"Add a Link"}case"web":return this.linkUrl;case"page":return this.linkTitle;default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkText",{get:function(){return this.metadata.link&&this.metadata.link.text||this.defaultLinkText},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkTitle",{get:function(){return this.metadata.link&&this.metadata.link.title},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkUrl",{get:function(){return this.metadata.link&&this.metadata.link.url},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.url=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isWixUrl",{get:function(){return this.linkUrl&&0===this.linkUrl.indexOf("wix")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkTitleFromUrl",{get:function(){var e=/[^/]*\.\w+$/g.exec(this.linkUrl),t=e&&e[0];return t&&t.split(".")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unprotectedLinkOpenType",{get:function(){return a.Z.get(this,"metadata.link.target")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linkOpenType",{get:function(){return this.metadata.link&&!a.Z.isUndefined(this.metadata.link.target)?this.unprotectedLinkOpenType:this.metadata.link&&!a.Z.isUndefined(this.metadata.link.targetBlank)?this.metadata.link.targetBlank?"_blank":"_top":"_blank"},set:function(e){this.metadata.link||(this.metadata.link={}),this.metadata.link.target=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"initialLinkObject",{get:function(){return{type:"none",url:void 0,text:void 0,title:void 0,target:"_blank"}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDemo",{get:function(){return this.metadata.isDemo||this.dto.isDemo||"public"===this.metadata.sourceName||this.metadata.tags&&Array.isArray(this.metadata.tags)&&this.metadata.tags.indexOf("_paid")>=0},set:function(e){this.metadata.isDemo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isText",{get:function(){return"text"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVideo",{get:function(){return"video"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRendered",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDimensionless",{get:function(){return!(this.maxWidth>1||this.maxHeight>1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isTransparent",{get:function(){return this.url&&(this.url.indexOf(".png")>0||this.url.indexOf(".gif")>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"webLink",{get:function(){var e;return(null===(e=this.linkUrl)||void 0===e?void 0:e.length)>0&&"web"===this.linkType?{url:this.linkUrl,target:this.linkOpenType}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"directLink",{get:function(){return this.dto.directLink||this.webLink||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"directShareLink",{get:function(){return this.dto.directShareLink||""},enumerable:!1,configurable:!0}),e}();var E={lll:"1,2h",llp:"1,3r",lpl:"1,2h",pll:"1,2h,3l",lpp:"1,2h,3r,3h",plp:"1,2h,3l,3r,3h",ppl:"1,2h,3l,3h",ppp:"1,2h,3l,3r,3h"},I={lll:"1,2v,3t,3b,3v",llp:"1,2v,3t,3v",lpl:"1,2v,3t,3b,3v",pll:"1,2v,3b,3v",lpp:"1,2v,3t",plp:"1,2v",ppl:"1,3b",ppp:"1,2h"},O={1:[[1]],2:[[1],[1,2],[2]],3:[[1],[1,2],[1,2,3],[2,3],[3]]},x=function(){function e(e){var t=this;if(this.idx=e.idx,this.stripIdx=e.stripIdx,this.inStripIdx=e.inStripIdx,this.top=e.top,this.showAllItems=e.showAllItems,this.isLastItems=e.isLastItems,this.dummyItems=[],this.targetItemSize=e.targetItemSize,this.items=e.items.map((function(e){return e.Group=t,e})),e.styleParams){var r=e.styleParams;this.scrollDirection=r.scrollDirection,this.cubeType=r.cubeType,this.cubeImages=r.cubeImages,this.isVertical=r.isVertical,this.minItemSize=r.minItemSize,this.collageAmount=r.collageAmount,this.collageDensity=r.collageDensity,this.groupTypes=String(r.groupTypes),this.repeatingGroupTypes=String(r.layoutParams.repeatingGroupTypes),this.rotatingCropRatios=String(r.rotatingCropRatios),this.chooseBestGroup=r.chooseBestGroup,this.externalInfoHeight=r.externalInfoHeight,this.externalInfoWidth=r.externalInfoWidth,this.imageMargin=r.imageMargin,this.groupSize=r.groupSize}this.visible=!0,this.rendered=!0,this.required=!0;for(var i=this.items.length;!this.isWithinMinItemSize&&i>0;)this.placeItems(i),this.resize(),i--}return e.prototype.resize=function(){this.isVertical?this.resizeToWidth(this.targetItemSize):this.resizeToHeight(this.targetItemSize),this.setLeft(this.left),this.setTop(this.top)},e.prototype.safeGetItem=function(e){if(this.items[e])return this.items[e];if(this.dummyItems[e])return this.dummyItems[e];var t=new _((0,i.__assign)({},this.items[this.items.length-1].config));return t.idx=t.config.idx+e-(this.items.length-1),t.type="dummy",this.dummyItems[e]=t,t},e.prototype.setCubedHeight=function(e){var t=this.cubeImages&&1===this.groupSize&&["fill","fit"].includes(this.cubeType)&&0===this.repeatingGroupTypes.length&&0===this.rotatingCropRatios.length;this.cubedHeight=t?e:null},e.prototype.round=function(){this.isLastGroup&&0===this.scrollDirection?this.width=this.stripWidth-this.left:this.width=Math.round(this.width),this.height=Math.round(this.height);for(var e=0,t=this.items;e0?i.split(","):[];if(this.groupTypes){var s=this.groupTypes.split(",");s.length>1?0===(o=o.filter((function(e){return s.indexOf(e)>=0}))).length&&(o=["1"]):o=s}if(this.collageDensity>=0){var a=this.collageDensity,l=parseInt(o[o.length-1]),u=O[l],c=u[Math.floor(a*(u.length-1))];0===(o=o.filter((function(e){return c.indexOf(parseInt(e))>=0}))).length&&(o=["1"])}return o[this.calculateRandomSeed(o.length)]||"1"},e.prototype.calculateRandomSeed=function(e){var t;return t=this.isVertical?this.items[0].seed%e:(this.inStripIdx+this.stripIdx)%e,Math.round(Math.min(Math.max(0,t),e-1))},e.prototype.placeItems=function(e){this.type=this.getGroupType(e);var t,r=[],i=0,n=0;switch(this.type){default:case"1":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),i=t.width,n=t.height;break;case"2v":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(1)).pinToCorner("bottom-left"),t.resize(i/t.width),n+=t.height,r.push(t);break;case"2h":(t=this.safeGetItem(0)).pinToCorner("top-left"),t.innerOffset=[0,0],r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(1)).pinToCorner("top-right"),t.innerOffset=[0,0],t.resize(n/t.height),i+=t.width,r.push(t);break;case"3b":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(1)).pinToCorner("top-right"),t.resize(n/t.height),i+=t.width,r.push(t),(t=this.safeGetItem(2)).pinToCorner("bottom-left"),t.resize(i/t.width),n+=t.height,r.push(t);break;case"3t":(t=this.safeGetItem(1)).pinToCorner("bottom-left"),r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(2)).pinToCorner("bottom-right"),t.resize(n/t.height),i+=t.width,r.push(t),(t=this.safeGetItem(0)).pinToCorner("top-left"),t.resize(i/t.width),n+=t.height,r=[t].concat(r);break;case"3r":(t=this.safeGetItem(0)).pinToCorner("top-left"),r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(1)).pinToCorner("bottom-left"),t.resize(i/t.width),n+=t.height,r.push(t),(t=this.safeGetItem(2)).pinToCorner("top-right"),t.resize(n/t.height),i+=t.width,r.push(t);break;case"3l":(t=this.safeGetItem(1)).pinToCorner("top-right"),r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(2)).pinToCorner("bottom-right"),t.resize(i/t.width),n+=t.height,r.push(t),(t=this.safeGetItem(0)).pinToCorner("top-left"),t.resize(n/t.height),i+=t.width,r=[t].concat(r);break;case"3v":(t=this.safeGetItem(0)).pinToCorner("top-left"),t.setPosition("relative"),r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(2)).pinToCorner("bottom-left"),t.setPosition("relative"),t.resize(i/t.width),n+=t.height,r.push(t),(t=this.safeGetItem(1)).setPosition("relative"),t.resize(i/t.width),n+=t.height,t.pinToCorner("top",r[0]),r=[r[0],t,r[1]];break;case"3h":(t=this.safeGetItem(0)).pinToCorner("top-left"),t.setPosition("relative"),r.push(t),i=t.width,n=t.height,(t=this.safeGetItem(2)).pinToCorner("top-right"),t.setPosition("relative"),t.resize(n/t.height),i+=t.width,r.push(t),(t=this.safeGetItem(1)).setPosition("relative"),t.resize(n/t.height),i+=t.width,t.pinToCorner("left",r[0]),r=[r[0],t,r[1]]}this.width=i,this.height=n,this.items=r,this.placed=!0},e.prototype.resizeToHeight=function(e){this.height=e,this.width=this.getWidthByHeight(e),this.resizeItems()},e.prototype.resizeToWidth=function(e){this.width=e,this.height=this.getHeightByWidth(e),this.resizeItems()},e.prototype.resizeItems=function(){var e=this,t=["3b","3r"].indexOf(this.type)>=0?this.items.slice().reverse():this.items;t.forEach((function(r,i){r.resize(e.getItemDimensions(t,i)),r.group={top:e.top,left:e.left,width:e.width,height:e.height},r.groupOffset={bottom:e.top+e.height,right:e.left+e.width}}))},e.prototype.getItemDimensions=function(e,t){var r=this.imageMargin;switch(this.type){default:case"1":case"2v":case"3v":return{width:this.width-r};case"2h":case"3h":return{height:this.height-r};case"3t":case"3b":return 0===t?{width:this.width-r}:{height:this.height-e[0].height-2*r};case"3r":case"3l":return 0===t?{height:this.height-r}:{width:this.width-e[0].width-2*r}}},e.prototype.getHeightByWidth=function(e){var t=1,r=1,i=this.imageMargin,n=this.items.map((function(e){return e.width/e.height}));switch(this.type){default:case"1":r=1-(t=1/n[0]);break;case"2h":r=1-2*(t=1/(n[0]+n[1]));break;case"2v":r=2-(t=1/n[0]+1/n[1]);break;case"3h":r=1-3*(t=1/(n[0]+n[1]+n[2]));break;case"3v":r=3-(t=1/n[0]+1/n[1]+1/n[2]);break;case"3t":t=1/(n[2]+n[1])+1/n[0],r=2-2/(n[2]+n[1])+1/n[0];break;case"3b":t=1/(n[0]+n[1])+1/n[2],r=2-2/(n[0]+n[1])+1/n[2];break;case"3l":r=2-(t=(n[1]+n[2])/(n[0]*n[1]+n[1]*n[2]+n[0]*n[2]))*(2+n[0]);break;case"3r":r=2-(t=(n[0]+n[1])/(n[0]*n[1]+n[1]*n[2]+n[0]*n[2]))*(2+n[2])}return e*t+i*r},e.prototype.getWidthByHeight=function(e){var t=1,r=1,i=this.imageMargin,n=this.items.map((function(e){return e.width/e.height}));switch(this.type){default:case"1":r=1-(t=n[0]);break;case"2h":r=2-(t=n[0]+n[1]);break;case"2v":r=1-2*(t=1/(1/n[0]+1/n[1]));break;case"3h":r=3-(t=n[0]+n[1]+n[2]);break;case"3v":r=1-3*(t=1/(1/n[0]+1/n[1]+1/n[2]));break;case"3t":t=1/(1/(n[2]+n[1])+1/n[0]),r=(2/(n[2]+n[1])+1/n[0]-2)*t;break;case"3b":t=1/(1/(n[0]+n[1])+1/n[2]),r=(2/(n[0]+n[1])+1/n[2]-2)*t;break;case"3l":t=(n[0]*n[1]+n[1]*n[2]+n[0]*n[2])/(n[1]+n[2]),r=2+n[0]-2*t;break;case"3r":t=(n[0]*n[1]+n[1]*n[2]+n[0]*n[2])/(n[0]+n[1]),r=2+n[2]-2*t}return e*t+i*r},e.prototype.setTop=function(e){this.top=e||0;for(var t=0,r=this.items;t=e.minItemSize;return t&&i}),!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{id:this.id,idx:this.idx,stripIdx:this.stripIdx,inStripIdx:this.inStripIdx,isLastGroup:this.isLastGroup,items:this.items.map((function(e){return e.scheme})),type:this.type,width:this.width,height:this.height,infoHeight:this.infoHeight,infoWidth:this.infoWidth,ratio:this.ratio,top:this.top,left:this.left,right:this.right,bottom:this.bottom,visible:this.visible,rendered:this.rendered,required:this.required}},enumerable:!1,configurable:!0}),e}();const A=function(){function e(e){this.uniqueId=a.Z.generateUUID(),this.isGalleryGroup=!0,e.dto&&e.dto.dto&&(e.dto=e.dto.dto,a.Z.isDev()&&console.warn("Item core is created with already existing item core")),this.dto=Object.assign({},e.dto),e.scheme?this.processScheme(e.scheme):this.processScheme(new x({dto:e.dto}).scheme),e.items?this.items=e.items:console.warn("Pro Gallery created Gallery Group without items",e)}return e.prototype.processScheme=function(e){this.id=e.id,this.idx=e.idx,this.width=e.width,this.height=e.height,this.totalHeight=e.totalHeight,this.ratio=e.ratio,this.top=e.top,this.left=e.left,this.right=e.right,this.bottom=e.bottom,this.visible=e.visible,this.rendered=e.rendered,this.required=e.required},e.prototype.renderProps=function(e){return{className:"group",id:this.id,idx:this.idx,key:this.key,type:this.type,top:this.top,left:this.left,right:this.right,bottom:this.bottom,width:this.width,height:this.height,totalHeight:this.totalHeight,items:this.items,visible:this.visible,rendered:this.rendered,required:this.required,galleryConfig:e}},Object.defineProperty(e.prototype,"key",{get:function(){return"group_"+this.id},enumerable:!1,configurable:!0}),e}();var T=function(){function e(){}return e.convertDtoToLayoutItem=function(e){if(!!(e.id&&e.width>0&&e.height>0))return e;var t=e.metadata||e.metaData,r="object"==typeof t?t:a.Z.parseStringObject(t)||{};return(0,i.__assign)({id:e.itemId||e.photoId,width:r.width,height:r.height},e)},e.convertToGalleryItems=function(e,t,r){void 0===t&&(t={}),void 0===r&&(r=[]),e.galleryItems=[];for(var n=0;n0)&&1.5*this.targetItemSize0)return this.groups.length>=i;var s,a=this.container.galleryWidth;if(1===n)s=!1;else{var l=a/(this.ratio+e.ratio)-o,u=a/this.ratio-o;(s=!isNaN(l)&&!isNaN(u)&&(u<0||l<0&&Math.abs(u)0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastGroup",{get:function(){return this.groups[this.groups.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{idx:this.idx,groups:this.groups.map((function(e){return e.scheme})),width:this.width,height:this.height,ratio:this.ratio,isFullWidth:this.isFullWidth}},enumerable:!1,configurable:!0}),e}(),M=function(){function e(e,t,r,i,n){this.idx=e,this.groups=[],this.height=0,this.width=t,this.left=r,this.cubedHeight=i,this.infoWidth=n||0}return e.prototype.addGroup=function(e){this.addGroups([e])},e.prototype.addGroups=function(e){var t=this;this.groups=this.groups.concat(e),e.forEach((function(e){e.columnIdx=t.idx,e.Column=t}))},Object.defineProperty(e.prototype,"totalWidth",{get:function(){return this.width+this.infoWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{idx:this.idx,groups:this.groups.map((function(e){return e.scheme})),width:this.width,height:this.height}},enumerable:!1,configurable:!0}),e}();const R=new(function(){function e(){}return Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout=(0,i.__assign)({},e)},enumerable:!1,configurable:!0}),e}());const N=function(){function e(e){this.ready=!1,this.pointer=0,this.layoutItems=[],this.findNeighborItem=this.findNeighborItem.bind(this),this.updateParams(e),!1!==this.createLayoutOnInit&&this.createLayout(e)}return e.prototype.updateParams=function(e){this.srcItems=e.items,this.styleParams=w.addDefaultStyleParams(e.styleParams),this.container=w.convertContainer(e.container,this.styleParams);var t=e.options||{};this.useExistingLayout=!!t.useExistingLayout,this.createLayoutOnInit=t.createLayoutOnInit,this.showAllItems=!!t.showAllItems||!!e.showAllItems,this.useLayoutStore=!!t.useLayoutStore},e.prototype.verifyGalleryState=function(){if(!this.container.galleryWidth)throw this.ready=!1,new Error("Layouter: cannot create layout, galleryWidth is undefined or 0");if(!this.styleParams.targetItemSize)throw this.ready=!1,new Error("Layouter: cannot create layout, targetItemSize is undefined or 0")},e.prototype.calcNumberOfColumns=function(e,t){var r=1;if(this.styleParams.isVertical)if(this.styleParams.fixedColumns>0)r=this.styleParams.fixedColumns;else{var i=e/t,n=[Math.floor,Math.ceil],o=n.map((function(e){return e(i)})).map((function(t){return Math.round(e/t)})).map((function(e){return Math.abs(t-e)}));r=(0,n[o.indexOf(Math.min.apply(Math,o))])(i)||1}else r=1;return r},e.prototype.findShortestColumn=function(e,t){var r=e[0];if(this.styleParams.placeGroupsLtr)r=e[t%e.length];else for(var i=-1,n=0,o=e;n0){if(this.useLayoutStore)Object.assign(this,R.layout);else if(this.styleParams.isVertical){this.groups.slice(-3).forEach((function(t){var r=e.columns[t.columnIdx];r&&(r.height-=t.totalHeight,r.groups.splice(-1,1)),e.groups.splice(-1,1),t.realItems.forEach((function(){e.layoutItems.splice(-1,1),e.pointer--})),e.groupIdx--}))}else{if(1===this.scrollDirection){this.groups.slice(-1).forEach((function(t){var r=e.columns[0];r&&r.groups.splice(-1,1);var i=e.strips[0];i&&(i.setWidth(i.width-t.width),i.ratio=i.width/i.height,i.groups.splice(-1,1),e.strip=i),e.strips=[],e.groups.splice(-1,1),t.realItems.forEach((function(){e.layoutItems.splice(-1,1),e.pointer--})),e.groupIdx--})),this.galleryHeight=0}else{var t=this.strips.slice(-2);t&&(t.forEach((function(t){t&&(e.strips.splice(-1,1),t.groups.forEach((function(t){e.groups.splice(-1,1),t.items.forEach((function(){e.layoutItems.splice(-1,1),e.pointer--})),e.groupIdx--})))})),this.galleryHeight=this.strips.reduce((function(e,t){return e+t.height}),0),this.strip=new L({idx:this.strips.length+1,container:this.container,groupsPerStrip:this.styleParams.groupsPerStrip,scrollDirection:this.styleParams.scrollDirection,targetItemSize:this.targetItemSize}))}this.groupItems=[]}this.item={},this.pointer=Math.max(0,this.pointer),this.maxLoops=10*this.srcItems.length}else{if(this.pointer=0,this.firstGroup=!1,this.layoutItems=[],this.groups=[],this.strips=[],this.styleParams.forceFullHeight)this.targetItemSize=Math.sqrt(this.container.galleryHeight*this.container.galleryWidth/this.srcItems.length);else{var r=void 0;r="function"==typeof this.styleParams.targetItemSize?this.styleParams.targetItemSize():this.styleParams.targetItemSize,this.targetItemSize=Math.floor(r)+Math.ceil(2*(this.styleParams.imageMargin/2-this.styleParams.layoutParams.gallerySpacing))}this.galleryWidth=Math.floor(this.container.galleryWidth),this.maxGroupSize=this.getMaxGroupSize(),this.groupIdx=0,this.item={},this.groupItems=[],this.group={},this.bounds=this.container.bounds||{},this.strip=new L({idx:1,container:this.container,groupsPerStrip:this.styleParams.groupsPerStrip,scrollDirection:this.styleParams.scrollDirection,targetItemSize:this.targetItemSize}),this.galleryHeight=0,this.numOfCols=this.calcNumberOfColumns(this.galleryWidth,this.targetItemSize),this.targetItemSize=this.styleParams.isVertical?Math.floor(this.galleryWidth/this.numOfCols):this.targetItemSize;var i=this.styleParams,n=i.columnWidths,o=i.externalInfoWidth,s=i.imageMargin,a=this.styleParams.layoutParams.cropRatio,l=!1;if(n&&n.length>0){for(l=n.split(",").map(Number);l.length1?o:o*i)||0;return i-=u,c=c||(e.targetItemSize-u-s)/a+s,new M(r,i,n,c,u)})),this.maxLoops=10*this.srcItems.length}},e.prototype.createLayout=function(e){for(void 0!==e&&this.updateParams(e),this.verifyGalleryState(),this.prepareLayoutParams();this.srcItems[this.pointer];){if(6===this.imagesLeft&&this.saveExistingLayout(),this.maxLoops--,this.maxLoops<=0)return console.error("Cannot create layout, maxLoops reached!!!"),!1;if(this.item=new _({idx:this.pointer,inGroupIdx:this.groupItems.length+1,scrollTop:this.galleryHeight,dto:this.srcItems[this.pointer],container:this.container,styleParams:this.styleParams}),this.layoutItems[this.pointer]=this.item,this.groupItems.push(this.item),this.groupItems.length=0;t--){if(this.items[t].offset.top0&&st}));break;default:r=o(n.offset.right,n.offset.top+n.height/2,(function(e,t,r){return r>e}))}return r.idx>=0?r.idx:(console.warn("Could not find offset for itemIdx",e,t),e)},e.prototype.getMaxGroupSize=function(){var e=1;try{var t="string"==typeof this.styleParams.groupTypes&&this.styleParams.groupTypes.length>0?this.styleParams.groupTypes.split(","):this.styleParams.groupTypes;e=t.length>0?t.reduce((function(e,t){return Math.max(e,parseInt(t))}),1):Number(t),e=Math.min(e,this.styleParams.groupSize)}catch(t){console.error("couldn't calculate max group size - returing 3 (?)",t),e=3}return e},Object.defineProperty(e.prototype,"isLastImage",{get:function(){return!this.srcItems[this.pointer+1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLastImages",{get:function(){return!this.srcItems[this.pointer+1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"imagesLeft",{get:function(){return this.srcItems.length-this.pointer-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.layoutItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scheme",{get:function(){return{items:this.items.map((function(e){return e.scheme})),groups:this.groups.map((function(e){return e.scheme})),strips:this.strips.map((function(e){return e.scheme})),columns:this.columns.map((function(e){return e.scheme})),height:this.height,width:this.width}},enumerable:!1,configurable:!0}),e}();const k={layoutParams:{gallerySpacing:0,cropRatio:1},isRTL:!1,isVertical:!1,minItemSize:120,groupSize:3,chooseBestGroup:!0,groupTypes:"1,2h,2v,3t,3b,3l,3r",cubeImages:!1,cubeType:"fill",smartCrop:!1,fullscreen:!0,videoLoop:!0,videoSound:!1,videoPlay:"hover",videoSpeed:1,numberOfImagesPerRow:3,collageDensity:.8,galleryTextAlign:"center",imageMargin:10,fixedColumns:0,showArrows:!0,hasThumbnails:!1,galleryThumbnailsAlignment:"bottom",gridStyle:0,titlePlacement:s.Z.placements.SHOW_ON_HOVER,hoveringBehaviour:s.Z.infoBehaviourOnHover.APPEARS,isAutoSlideshow:!1,slideshowLoop:!1,playButtonForAutoSlideShow:!1,pauseAutoSlideshowOnHover:!0,allowSlideshowCounter:!1,autoSlideshowInterval:4,arrowsSize:23,slideshowInfoSize:200,imageLoadingMode:s.Z.loadingMode.BLUR,scrollAnimation:s.Z.scrollAnimations.NO_EFFECT,overlayAnimation:s.Z.overlayAnimations.NO_EFFECT,imageHoverAnimation:s.Z.imageHoverAnimations.NO_EFFECT,itemBorderWidth:0,itemBorderRadius:0,itemEnableShadow:!1,itemShadowBlur:20,loadMoreAmount:"all",itemShadowDirection:135,itemShadowSize:10,imageInfoType:s.Z.infoType.NO_BACKGROUND,textBoxBorderRadius:0,textBoxBorderWidth:0,textBoxHeight:200,textImageSpace:10,scrollDirection:0,slideAnimation:s.Z.slideAnimations.SCROLL,autoSlideshowType:s.Z.autoSlideshowTypes.INTERVAL,autoSlideshowContinuousSpeed:200};var D=(0,l.oZ)(k,{layoutParams:{repeatingGroupTypes:"",navigationArrows:{type:s.Z.arrowsType.DEFAULT_ARROW,container:{type:s.Z.arrowsContainerStyleType.SHADOW,backgroundColor:"rgba(0,0,0,0)",borderRadius:0},mouseCursorContainerMaxWidth:100},thumbnails:{position:s.Z.thumbnailsPosition.OUTSIDE_GALLERY},structure:{galleryRatio:{value:0,includeExternalInfo:!1}}},behaviourParams:{item:{content:{magnificationValue:2},secondaryMedia:{trigger:s.Z.secondaryMediaTrigger.OFF,behaviour:s.Z.secondaryMediaBehaviour.APPEARS}}},galleryLayout:-1,gallerySizePx:0,gallerySizeRatio:0,gallerySizeType:s.Z.gallerySizeType.SMART,itemShadowOpacityAndColor:"",arrowsColor:"",textBoxBorderColor:"",allowContextMenu:!1,showVideoPlayButton:!1,gallerySize:30,cropOnlyFill:!1,rotatingCropRatios:"",columnWidths:"",numberOfImagesPerCol:1,groupsPerStrip:0,imageMargin:10,scatter:0,rotatingScatter:"",placeGroupsLtr:!1,enableInfiniteScroll:!0,thumbnailSpacings:4,enableScroll:!0,scrollSnap:!1,itemClick:s.Z.itemClick.NOTHING,slideAnimation:s.Z.slideAnimations.SCROLL,scrollDuration:400,arrowsPosition:s.Z.arrowsPosition.ON_GALLERY,arrowsVerticalPosition:s.Z.arrowsVerticalPosition.ITEM_CENTER,arrowsPadding:23,thumbnailSize:120,magicLayoutSeed:1,imagePlacementAnimation:s.Z.imagePlacementAnimations.NO_EFFECT,calculateTextBoxWidthMode:s.Z.textBoxWidthCalculationOptions.PERCENT,textBoxWidth:200,textBoxWidthPercent:50,loadMoreButtonText:"",videoSpeed:"1",showVideoControls:!1,shouldIndexDirectShareLinkInSEO:!0,slideTransition:s.Z.slideTransition.ease,useMaxDimensions:!1,enableVideoPlaceholder:!0,overlayPosition:s.Z.overlayPositions.LEFT,overlaySize:100,overlaySizeType:s.Z.overlaySizeType.PERCENT,overlayPadding:0,cubeFitPosition:s.Z.cubeFitPosition.MIDDLE,magnificationLevel:2});var Z=r(40496),H=r(66092),B=r(67427),W=r(49456),F=r(60176),G=r(30579),U=r(65452),z=r(9754),j=r(65177),V=r(37242),K=r(42272);const q=function(e,t){var r=(0,i.__assign)({},e);return r.textBoxHeight=function(e,t){if(!function(e,t){return(0,H.hd)(e.titlePlacement)&&t}(e,t))return 0;return e.textBoxHeight}(r,t),r.externalInfoHeight=function(e,t){var r=t;t>0&&(0,H.hd)(e.titlePlacement)&&e.imageInfoType===V.Z.SEPARATED_BACKGROUND&&(r+=e.textImageSpace,r+=2*e.textBoxBorderWidth);return r}(r,r.textBoxHeight),r.externalInfoWidth=function(e,t){if(!function(e,t){var r=e.scrollDirection,i=e.isVertical,n=e.groupSize,o=e.titlePlacement,a=r===s.Z.scrollDirection.VERTICAL&&i&&1===n;return a&&(0,H.Xq)(o)&&t}(e,t))return 0;var r=e.calculateTextBoxWidthMode,i=e.textBoxWidth,n=e.textBoxWidthPercent,o=0;o=r===K.Z.PERCENT?Math.min(100,Math.max(0,n))/100:i;return o}(r,t),r};var X=function(e){return e.replace(/_/g," ").split(" ").map((function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()})).join(" ")},$=function(e){return Object.entries(s.Z[e]).map((function(e){var t=e[0];return{value:e[1],title:X(t)}}))};const Y=function(e){return e.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&1===e.groupSize&&e.cubeImages&&"100%/100%"===e.layoutParams.cropRatio},Q=(s.Z.slideAnimations.SCROLL,$("slideAnimations"),function(){return!0}),J=(s.Z.scrollDirection.VERTICAL,$("scrollDirection"),function(e){return Q(e)&&e.scrollDirection===s.Z.scrollDirection.HORIZONTAL}),ee=function(e){return J(e)&&e.showArrows};s.Z.arrowsPosition.ON_GALLERY,$("arrowsPosition");var te=function(e,t){return void 0===t&&(t=!1),e.gallerySizeType===U.Z.PIXELS&&e.gallerySizePx>0?e.gallerySizePx:e.gallerySizeType===U.Z.RATIO&&e.gallerySizeRatio>0?(Z.Z&&Z.Z.innerWidth||980)*(e.gallerySizeRatio/100):t||e.gallerySize},re=function(e){var t=(0,i.__assign)({},e);return t.fixedColumns=0,(e.scrollDirection===s.Z.scrollDirection.VERTICAL||e.isVertical)&&(t.fixedColumns="1"===String(e.gridStyle)?Number(e.numberOfImagesPerRow):0,t.groupTypes="1",t.groupSize=1,t.collageAmount=0,t.collageDensity=0),t},ie=function(e){var t=(0,i.__assign)({},e);return!function(e){if((0,H.hd)(e.titlePlacement)){if(s.Z.isLayout("SLIDER")(e)||s.Z.isLayout("PANORAMA")(e)||s.Z.isLayout("COLUMN")(e))return!0;if(s.Z.isLayout("MASONRY")(e)&&e.isVertical)return!0;if(s.Z.isLayout("GRID")(e)&&1!==e.scrollDirection)return!0}return!1}(t)?(a.Z.isUndefined(t.itemFont)||(t=oe("itemFont","textDecorationTitle",t)),a.Z.isUndefined(t.itemDescriptionFont)||(t=oe("itemDescriptionFont","textDecorationDesc",t))):(a.Z.isUndefined(t.itemFontSlideshow)||(t=oe("itemFontSlideshow","textDecorationTitle",t)),a.Z.isUndefined(t.itemDescriptionFontSlideshow)||(t=oe("itemDescriptionFontSlideshow","textDecorationDesc",t))),t},ne=function(e){var t=(0,i.__assign)({},e);return"fit"===t.cubeType&&(t.itemBorderWidth=0,t.itemBorderRadius=0,t.itemEnableShadow=!1),t},oe=function(e,t,r){var n=(0,i.__assign)({},r);return n[e].value=n[e].value.replace(/^font\s*:\s*/,""),n[e].value=n[e].value.replace(/;$/,""),n[e].value.indexOf("underline")>-1||!0===n[e].style.underline?(n[e].value=n[e].value.replace("underline",""),n[t]="underline"):!1===n[e].style.underline&&(n[t]="none"),n};const se=function(e,t){var r=(0,i.__assign)({},e);return a.Z.isMobile()&&(r=function(e){var t=(0,i.__assign)({},e);return t.imageMargin>0&&(t.imageMargin=Math.min(t.imageMargin,50)),t}(r=ie(r))),r=function(e){var t=(0,i.__assign)({},e);return t.gallerySizeType===U.Z.PIXELS&&t.gallerySizePx>0?t.targetItemSize=t.gallerySizePx:t.gallerySizeType===U.Z.RATIO&&t.gallerySizeRatio>0&&(t.targetItemSize=(Z.Z&&Z.Z.innerWidth||980)*(t.gallerySizeRatio/100)),t}(r=function(e){var t=(0,i.__assign)({},e);return t.forceMobileCustomButton&&(t.targetItemSize=Math.round(405),t.titlePlacement=H.ZP.SHOW_BELOW,t.galleryLayout=2,t.fixedColumns=1,t.numberOfImagesPerRow=1),t}(r=function(e){var t=(0,i.__assign)({},e);return t.loadMoreButtonFont&&a.Z.isMobile()&&(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/^font\s*:\s*/,""),t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace(/;$/,""),t.loadMoreButtonFont.value.indexOf("underline")>-1?(t.loadMoreButtonFont.value=t.loadMoreButtonFont.value.replace("underline",""),t.textDecorationLoadMore="underline"):t.textDecorationLoadMore="none"),t}(r=function(e){var t=(0,i.__assign)({},e);return(t.scrollDirection===s.Z.scrollDirection.VERTICAL||t.groupSize>1||!t.cubeImages)&&(t.slideAnimation=G.Z.SCROLL),t}(r=function(e){var t=(0,i.__assign)({},e);return t.scrollDirection===s.Z.scrollDirection.VERTICAL&&(t.slideshowLoop=!1),t}(r=function(e){var t=(0,i.__assign)({},e);return t.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&(t.isVertical=!1),t}(r=function(e){var t=(0,i.__assign)({},e);return t.arrowsPosition===z.Z.OUTSIDE_GALLERY&&(t.arrowsPadding=0),t}(r=function(e){var t=(0,i.__assign)({},e);if(t.itemEnableShadow&&t.scrollDirection===s.Z.scrollDirection.VERTICAL){var r=Math.max(t.layoutParams.gallerySpacing,(t.itemShadowSize||0)+(t.itemShadowBlur||0));t=(0,l._x)(t,"layoutParams_gallerySpacing",r)}return t}(r=function(e){var t=(0,i.__assign)({},e);return t.itemEnableShadow&&t.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&(t.itemEnableShadow=!1),t}(r=function(e){var t=(0,i.__assign)({},e);return t.imageLoadingMode===W.Z.COLOR&&t.imageLoadingWithColorMode===F.Z.MAIN_COLOR&&(t.imageLoadingMode=W.Z.MAIN_COLOR),t}(r=function(e){var t=(0,i.__assign)({},e);return e.EXPERIMENTALallowParallelInfos||(0,H.Sy)(t.titlePlacement)||t.hoveringBehaviour===B.Z.NEVER_SHOW||(t.hoveringBehaviour=B.Z.APPEARS),t}(r=function(e){var t=(0,i.__assign)({},e);return s.Z.isLayout("SLIDER")(t)||s.Z.isLayout("COLUMN")(t)||s.Z.isLayout("SLIDESHOW")(t)||(!t.isVertical||t.groupSize>1)&&(t.titlePlacement=H.ZP.SHOW_ON_HOVER),t}(r)))))))))))),r=function(e){var t=(0,i.__assign)({},e);return!0===t.cropOnlyFill&&(t.cubeImages=t.layoutParams.crop.enable=t.cubeType===j.Z.CROP),t}(r=function(e){var t=(0,i.__assign)({},e);return a.Z.isTouch()&&e.arrowsPosition===s.Z.arrowsPosition.MOUSE_CURSOR&&ee(e)&&(t.showArrows=!1),t}(r=function(e){var t=(0,i.__assign)({},e);return e.arrowsPosition===s.Z.arrowsPosition.MOUSE_CURSOR&&ee(e)&&(t.showVideoControls=!1),t}(r=function(e){var t=(0,i.__assign)({},e);return e.slideAnimation!==s.Z.slideAnimations.FADE&&e.slideAnimation!==s.Z.slideAnimations.DECK||!Y(e)||(t.enableScroll=!1),t}(r=function(e){var t=(0,i.__assign)({},e);return t.allowSlideshowCounter?(t.isAutoSlideshow||(t.allowSlideshowCounter=!1),!1===s.Z.isLayout("SLIDESHOW")(e)&&(t.allowSlideshowCounter=!1),t):t}(r=function(e){var t=(0,i.__assign)({},e),r=t.layoutParams.repeatingGroupTypes?"1"==t.layoutParams.repeatingGroupTypes:"1"==t.groupTypes,n=t.titlePlacement.split(",").filter((function(e){return!(0,H.mR)(e)})).join(",");return(0,H.DT)(n)&&r||(t.arrowsVerticalPosition=s.Z.arrowsVerticalPosition.ITEM_CENTER),t}(r=q(r,t)))))))};var ae=r(81391),le=r(11334),ue=function(e){var t=(0,i.__assign)({},e);return t.galleryLayout=u.Z.ALTERNATE,t.cubeType="fill",t.cubeImages=!0,(t=(0,l._x)(t,"layoutParams_cropRatio",1)).titlePlacement=H.ZP.SHOW_ON_HOVER,t.scrollDirection=ae.Z.VERTICAL,t.gridStyle=le.Z.SET_ITEMS_PER_ROW,(t=(0,l._x)(t,"layoutParams_gallerySpacing",0)).isVertical=!0,t.groupSize=3,t.collageDensity=.48,t.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",t.gallerySize=86,t.minItemSize=50,t.chooseBestGroup=!0,(t=(0,l._x)(t,"layoutParams_repeatingGroupTypes","1,2h,1,2h")).smartCrop=!1,t.scatter=0,t.rotatingScatter="",t.fixedColumns=1,t.groupsPerStrip=0,t.placeGroupsLtr=!1,t.rotatingCropRatios="",t.slideshowLoop=!1,t},ce=(ue({}),function(e){var t=(0,i.__assign)({},e);return t.galleryLayout=u.Z.BRICKS,t.cubeType="fill",t.cubeImages=!0,(t=(0,l._x)(t,"layoutParams_cropRatio",1)).titlePlacement=H.ZP.SHOW_ON_HOVER,t.scrollDirection=ae.Z.VERTICAL,(t=(0,l._x)(t,"layoutParams_gallerySpacing",0)).isVertical=!0,t.groupSize=3,t.collageDensity=.8,t.groupTypes="1,2h,2v,3t,3b,3l,3r,3v,3h",t.slideshowLoop=!1,t.gridStyle=le.Z.SET_ITEMS_PER_ROW,t.gallerySize=400,t.minItemSize=50,t.chooseBestGroup=!0,(t=(0,l._x)(t,"layoutParams_repeatingGroupTypes","2h")).smartCrop=!1,t.scatter=0,t.rotatingScatter="",t.fixedColumns=1,t.groupsPerStrip=0,t.placeGroupsLtr=!1,t.rotatingCropRatios="0.707,1.414,1.414,0.707",t}),de=(ce({}),function(e){var t=(0,i.__assign)({},e);return t.galleryLayout=u.Z.COLLAGE,t.cubeImages=!1,t.titlePlacement=H.ZP.SHOW_ON_HOVER,t.groupSize=3,t.hasThumbnails=!1,t.groupTypes="1,2h,2v,3t,3b,3l,3r",t.slideshowLoop=!1,t.numberOfImagesPerCol=1,t.gridStyle=le.Z.FIT_TO_SCREEN,t.targetItemSize=0,t.fixedColumns=0,t.enableScroll=!0,t.cropOnlyFill=!1,t.slideAnimation=G.Z.SCROLL,t}),he=(de({}),function(e){var t=(0,i.__assign)({},e);return(t=de(t)).targetItemSize=te(t,Math.round(5*t.gallerySize+500)),t}),pe=function(e){var t=(0,i.__assign)({},e);return t.galleryLayout=u.Z.FULLSIZE,t.cubeImages=!0,(t=(0,l._x)(t,"layoutParams_cropRatio","100%/100%")).cubeType="fill",t.titlePlacement=H.ZP.SHOW_ON_HOVER,t.scrollDirection=ae.Z.HORIZONTAL,t.galleryMargin=0,t.isVertical=!1,t.groupSize=1,t.groupTypes="1",t.numberOfImagesPerCol=1,t.smartCrop=!1,t.galleryType="Strips",t.hasThumbnails=!1,t.enableScroll=!0,t.scrollSnap=!0,t.cropOnlyFill=!1,t.scatter=0,t.rotatingScatter="",t.imageMargin=0,t},ge=(pe({}),function(e){var t=(0,i.__assign)({},e);return t.galleryLayout=u.Z.COLUMN,t.cubeType="fill",t.cubeImages=!0,(t=(0,l._x)(t,"layoutParams_cropRatio",.35)).scrollDirection=ae.Z.HORIZONTAL,t.isVertical=!1,t.groupSize=1,t.groupTypes="1",t.numberOfImagesPerCol=1,t.smartCrop=!1,t.galleryType="Strips",t.fixedColumns=0,t.enableScroll=!0,t.cropOnlyFill=!1,t.slideAnimation=G.Z.SCROLL,t}),me=(ge({}),function(e){var t=(0,i.__assign)({},e);return(t=ge(t)).targetItemSize=te(t),t}),fe=function(e){var t=(0,i.__assign)({},e);return t.galleryLayout=u.Z.GRID,t.cubeImages=!0,t.isVertical=!0,t.groupSize=1,t.hasThumbnails=!1,t.groupTypes="1",t.slideshowLoop=!1,t.smartCrop=!1,t.galleryType="Columns",t.targetItemSize=0,t.enableScroll=!0,t.cropOnlyFill=!1,t.minItemSize=50,t.slideAnimation=G.Z.SCROLL,t.collageDensity=0,t},ye=(fe({}),function(e){var t=(0,i.__assign)({},e);return(t=fe(t)).targetItemSize=te(t,Math.round(8.5*t.gallerySize+150)),t=function(e){var t=(0,i.__assign)({},e);if(!a.Z.isUndefined(e.numberOfImagesPerCol)&&e.scrollDirection===s.Z.scrollDirection.HORIZONTAL)switch(t.fixedColumns=0,e.numberOfImagesPerCol){case 1:default:t.groupTypes="1",t.groupSize=1,t.collageAmount=0,t.collageDensity=0;break;case 2:t.groupTypes="2v",t.groupSize=2,t.collageAmount=1,t.collageDensity=1;break;case 3:t.groupTypes="3v",t.groupSize=3,t.collageAmount=1,t.collageDensity=1}return t}(t=re(t)),t=ne(t)}),ve=new(function(){function e(){this.features={fullscreenRedesign:{title:"New fullscreen design",releaseDate:Date.parse("2017-09-25T12:00:00.000Z")},spacingCalculation:{title:"Improve spacing calculation",releaseDate:Date.parse("2017-08-29T11:27:29.000Z")},fixedColumnsInMasonry:{title:"Allow fixed number of columns in Masonry layout",releaseDate:Date.parse("2018-05-24T18:00:00.000Z")},mobileSettings:{title:"Separate mobile and desktop setting",releaseDate:Date.parse("2018-12-18T12:00:50.054Z")}},this.freezeDate=new Date,this.updateFeatures()}return Object.defineProperty(e.prototype,"freezeDate",{get:function(){return this._dateCreated||new Date},set:function(e){"object"==typeof e&&"function"==typeof e.getTime&&(this._dateCreated=e,this.updateFeatures())},enumerable:!1,configurable:!0}),e.prototype.updateFeatures=function(){var e=this;this.supports=Object.entries(this.features).reduce((function(t,r){var n,o=r[0],s=r[1].releaseDate;return(0,i.__assign)((0,i.__assign)({},t),((n={})[o]=e.freezeDate>=s,n))}))},e}()),be=function(e){var t=(0,i.__assign)({},e);return t.galleryLayout=u.Z.MAGIC,t.cubeImages=void 0,(t=(0,l._x)(t,"layoutParams_cropRatio",void 0)).isVertical=void 0,t.targetItemSize=void 0,t.collageAmount=void 0,t.collageDensity=void 0,t.groupTypes=void 0,t.oneRow=void 0,t.imageMargin=void 0,t.scatter=void 0,(t=(0,l._x)(t,"layoutParams_gallerySpacing",void 0)).chooseBestGroup=void 0,t.smartCrop=void 0,t.cubeType=void 0,t.hasThumbnails=void 0,t.enableScroll=void 0,t.cropOnlyFill=void 0,t.fixedColumns=void 0,t.enableInfiniteScroll=void 0,t.slideshowLoop=!1,t},Se=(be({}),function(e){var t=(0,i.__assign)({},e),r=t.magicLayoutSeed;!r>0&&(r=999999),r=Math.floor(r);var n=function(e,t,i){var n,o,s=function(e){e=String(e);for(var t=0,r=0;r0};const He=new(function(){function e(){this.options={},this.container={},this.id="",this._cache={}}return e.prototype.getOrPutInCache=function(e,t){return this._cache[e]||(this._cache[e]=t()),this._cache[e]},e.prototype.dumpCache=function(){this._cache={}},e.prototype.updateParams=function(e){var t=e.options,r=e.container,i=e.id;this.dumpCache(),this.id=i||this.id,this.options=t||this.options,this.container=r||this.container,this.fixHeightForHorizontalGalleryIfNeeded()},e.prototype.getGalleryDimensions=function(){var e=this;return this.getOrPutInCache("galleryDimensions",(function(){var t={galleryWidth:Math.ceil(e.getGalleryWidth()),galleryHeight:Math.ceil(e.getGalleryHeight()),scrollBase:e.container.scrollBase?Math.ceil(e.container.scrollBase):0,height:Math.ceil(e.container.height),width:Math.ceil(e.container.width)};return e.container.externalScrollBase&&(t.scrollBase+=e.container.externalScrollBase),e.options.hasThumbnails&&e.options.layoutParams.thumbnails.position===s.Z.thumbnailsPosition.OUTSIDE_GALLERY&&(t.galleryHeight-=e.getThumbnailHeightDelta(),t.galleryWidth-=e.getThumbnailWidthDelta()),t}))},e.prototype.getGalleryWidth=function(){var e=this;return this.getOrPutInCache("galleryWidth",(function(){var t=Math.floor(e.container.width)+2*e.getDimensionFix();return e.options.arrowsPosition===s.Z.arrowsPosition.OUTSIDE_GALLERY&&e.options.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&(t-=2*(e.options.arrowsSize+40+e.options.imageMargin/2)),t}))},e.prototype.getGalleryHeight=function(){var e=this;return this.getOrPutInCache("galleryHeight",(function(){return Math.floor((e.container.height>0?e.container.height:0)+(e.options.scrollDirection===s.Z.scrollDirection.HORIZONTAL?e.getDimensionFix():0))}))},e.prototype.getDimensionFix=function(){var e=this;return this.getOrPutInCache("dimensionFix",(function(){return Number(e.options.imageMargin/2)-Number(e.options.layoutParams.gallerySpacing)}))},e.prototype.getGalleryRatio=function(){var e=this;return this.getOrPutInCache("galleryRatio",(function(){var t=e.getGalleryDimensions();return t.galleryWidth/t.galleryHeight}))},e.prototype.getThumbnailSize=function(){return this.options.thumbnailSize+this.options.layoutParams.gallerySpacing+3*this.options.thumbnailSpacings},e.prototype.getThumbnailHeightDelta=function(){switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":return this.getThumbnailSize();case"left":case"right":return 0}},e.prototype.getThumbnailWidthDelta=function(){switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":return 0;case"left":case"right":return this.getThumbnailSize()}},e.prototype.fixHeightForHorizontalGalleryIfNeeded=function(){if(this.options.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&this.options.layoutParams.structure.galleryRatio.value>0)if(this.options.hasThumbnails&&this.options.layoutParams.thumbnails.position===s.Z.thumbnailsPosition.OUTSIDE_GALLERY)switch(this.options.galleryThumbnailsAlignment){case"top":case"bottom":this.container.height=this.container.width*this.options.layoutParams.structure.galleryRatio.value+this.getThumbnailHeightDelta();break;case"left":case"right":this.container.height=(this.container.width-this.getThumbnailWidthDelta())*this.options.layoutParams.structure.galleryRatio.value}else this.container.height=this.container.width*this.options.layoutParams.structure.galleryRatio.value,!this.options.layoutParams.structure.galleryRatio.includeExternalInfo&&Ze(this.options)&&(this.container.height+=this.options.externalInfoHeight)},e}());const Be=new(function(){function e(){}return e.prototype.createBlueprint=function(e){var t=e.params,r=e.lastParams,n=e.existingBlueprint,o=e.blueprintManagerId,a=e.isUsingCustomInfoElements;this.reasons={items:"",itemsAdded:"",options:"",container:""};var l={};try{var u=t.container,c=t.items,d=t.options,h=r.container,p=r.items,g=r.options,m=this.formatItemsIfNeeded(c,p),f=m.formattedItems,y=m.changed,v=this.formatOptionsIfNeeded(d,g,a),b=v.formattedOptions,S=v.changed,P=this.formatContainerIfNeeded(u,h,g,b||n.options,S),w=P.formattedContainer,_=P.changed,C=y||S||_;if(l={itemsChanged:y,optionsChanged:S,containerChanged:_},C||!n){n||(n={});var E=this.createStructure({formattedContainer:w||n.container,formattedItems:f||n.items,formattedOptions:b||n.options},C);b&&(n.options=b),f&&(n.items=f),w&&(n.container=w),n.structure=E,n.options.scrollDirection===s.Z.scrollDirection.VERTICAL&&n.options.enableInfiniteScroll&&(n.container.height=n.container.galleryHeight=E.height)}}catch(e){console.error("Could not create blueprint, error:",e)}var I=Object.entries(this.reasons).reduce((function(e,t){var r=t[0],n=t[1];return(0,i.__spreadArrays)(e,[r+": "+n])}),[]).join(", ");return{blueprint:n,changedParams:l,blueprintManagerId:o,reasons:I}},e.prototype.formatItemsIfNeeded=function(e,t){var r,i=this,n=t,o=!1;return!function(e,t){if(e===t)return i.reasons.itemsAdded="items are the same object.",!1;if(!e)return i.reasons.itemsAdded="new items do not exist.",!1;if(!t||t&&0===t.length)return i.reasons.itemsAdded="old items do not exist.",!1;if(t.length>=e.length)return i.reasons.itemsAdded="more old items than new items.",!1;var r=t.reduce((function(t,r,i){return t&&r.id===e[i].itemId}),!0);return r||(i.reasons.itemsAdded="items ids were changed. "),r}(e,n)?function(e,t){return e===t?(i.reasons.items="items are the same object.",!1):e?!t||t&&0===t.length?(i.reasons.items="old items do not exist.",!0):t.length!==e.length?(i.reasons.items="more new items than old items (or vice versa).",!0):e.some((function(e,r){var n=t[r];try{var o=!e||!n||e.itemId!==n.itemId||e.mediaUrl!==n.mediaUrl||e.measured!==n.measured||e.metaData&&n.metaData&&(e.metaData.type!==n.metaData.type||e.metaData.title!==n.metaData.title||e.metaData.description!==n.metaData.description)||e.metaData&&"text"===e.metaData.type&&n.metaData&&"text"===n.metaData.type&&(e.metaData.width!==n.metaData.width||e.metaData.height!==n.metaData.height||e.metaData.html!==n.metaData.html||e.metaData.textStyle!==n.metaData.textStyle||e.metaData.editorHtml!==n.metaData.editorHtml);return o&&(i.reasons.items="items #"+r+" id was changed."),o}catch(e){return i.reasons.items="an error occured",!0}}),!1):(i.reasons.items="new items do not exist.",!1)}(e,n)&&(r=e.map((function(e){return Object.assign(T.convertDtoToLayoutItem(e))})),this.gettingMoreItems=!1,o=!0):(r=n.concat(e.slice(n.length).map((function(e){return T.convertDtoToLayoutItem(e)}))),this.gettingMoreItems=!1,o=!0),{formattedItems:r,changed:o}},e.prototype.formatOptionsIfNeeded=function(e,t,r){var i,n=this,o=!1;if(function(e,t){if(!e)return n.reasons.options="no new options.",!1;if(!t)return n.reasons.options="no old options.",!0;try{var r={};Object.keys(t).sort().forEach((function(e){return r[e]=t[e]}));var i={};Object.keys(e).sort().forEach((function(t){return i[t]=e[t]}));var o=JSON.stringify(i)!==JSON.stringify(r);return o&&(n.reasons.options="options were changed."),o}catch(e){return console.error("Could not compare options",e),!1}}(e,t)){var s=function(e){var t=(0,l.FX)(D),r=(0,l.FX)(e),i=Object.assign({},t,r);return Object.keys(i).forEach((function(e){void 0===i[e]&&(i[e]=D[e])})),(0,l.Tx)(i)}(P(e));i=P(se(ke(s),r)),o=!0}return{formattedOptions:i,changed:o}},e.prototype.formatContainerIfNeeded=function(e,t,r,i,n){var o,a=this,l=!1;return(n||function(e){var t=e.newContainerParams,r=e.oldContainerParams;if(!e.oldOptions||!r)return a.reasons.container="no old container or options. ",!0;if(!t)return a.reasons.container="no new container.",!1;var n={height:(i.scrollDirection!==s.Z.scrollDirection.VERTICAL||!i.enableInfiniteScroll)&&(!!t.height&&t.height!==r.height),width:!r||!!t.width&&t.width!==r.width,scrollBase:t.scrollBase!==r.scrollBase};return Object.keys(n).reduce((function(e,t){return n[t]&&(a.reasons.container+="container."+t+" has changed. "),e||n[t]}),!1)}({newContainerParams:e,oldContainerParams:t,oldOptions:r}))&&(He.updateParams({options:i,container:e}),l=!0,o=Object.assign({},e,He.getGalleryDimensions())),{formattedContainer:o,changed:l}},e.prototype.createStructure=function(e){var t=e.formattedContainer,r=e.formattedOptions,i={items:e.formattedItems,container:t,styleParams:r,options:{showAllItems:!0,skipVisibilitiesCalc:!0,useLayoutStore:!1}};return i.options.createLayoutOnInit=!1,this.layouter=new N(i),this.layouter.createLayout(i)},e}());var We=r(3790),Fe=function(){function e(e){var t=e.id;this.id=t+"'s blueprintsManager",this.currentState={},this.existingBlueprint={},this.lastBlueprintId=0,this.cache={},this.api={},this.currentState.totalItemsCount=1/0,this.onBlueprintReady=function(){},this.loopingItems=!1}return e.prototype.init=function(e){this.api=e.api,this.currentState.totalItemsCount=e&&e.totalItemsCount||this.currentState.totalItemsCount,We.Ce.setDeviceType(e.deviceType)},e.prototype.setCurrentBlueprint=function(e){this.lastBlueprintId=e},e.prototype.createBlueprint=function(e){return void 0===e&&(e={}),(0,i.__awaiter)(this,void 0,void 0,(function(){var t,r,n,o,s,a,l,u,c,d,h=this;return(0,i.__generator)(this,(function(p){switch(p.label){case 0:return t=Math.floor(1e3*Math.random()),this.currentState.totalItemsCount=e.totalItemsCount||this.api.getTotalItemsCount&&this.api.getTotalItemsCount()||this.currentState.totalItemsCount,this.currentState.isUsingCustomInfoElements=e.isUsingCustomInfoElements||this.api.isUsingCustomInfoElements&&this.api.isUsingCustomInfoElements()||this.currentState.isUsingCustomInfoElements,r=[(0,i.__assign)({},e)],[4,this.completeParams(e)];case 1:return e=i.__assign.apply(void 0,r.concat([p.sent()])),e=this.duplicateItemsForSlideshowLoopIfNeeded(e),n=function(e){return(0,i.__awaiter)(h,void 0,void 0,(function(){return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return this.setCurrentBlueprint(e.blueprintManagerId),this.api.createBlueprintImp?[4,this.api.createBlueprintImp(e)]:[3,2];case 1:case 3:return[2,t.sent()];case 2:return[4,Be.createBlueprint(e)]}}))}))},[4,n({params:e,lastParams:this.currentState,existingBlueprint:this.existingBlueprint,blueprintManagerId:this.id+t,isUsingCustomInfoElements:this.currentState.isUsingCustomInfoElements})];case 2:return o=p.sent(),s=o.blueprintManagerId,a=o.blueprint,l=o.changedParams,u=o.reasons,s!==this.lastBlueprintId?[2]:(c=Object.values(l).some((function(e){return!!e})),d=Object.keys(a).length>0,this.updateLastParamsIfNeeded(e,l,d),d&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:a,blueprintChanged:c,reasons:u}),[2,this.cache[e]=this.existingBlueprint=a])}}))}))},e.prototype.getMoreItems=function(e){return(0,i.__awaiter)(this,void 0,void 0,(function(){var t;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return e0;return this.updateLastParamsIfNeeded(e,i,s),s&&this.api.onBlueprintReady&&this.api.onBlueprintReady({blueprint:r,blueprintChanged:o,reasons:n,initialBlueprint:!0}),s&&(this.cache[e]=this.existingBlueprint=r)},e.prototype.createSingleBlueprint=function(e){void 0===e&&(e={});var t=e.isUsingCustomInfoElements;return Be.createBlueprint({params:e,lastParams:{},existingBlueprint:{},blueprintManagerId:this.id+"_singleBlueprint",isUsingCustomInfoElements:t}).blueprint},e.prototype.duplicateGalleryItems=function(e){for(var t=e.items,r=e.duplicateFactor,i=void 0===r?1:r,n=(t=t||this.currentState.items).slice(0,this.currentState.totalItemsCount),o=0;o0&&(t=!1),t}(e)?(t=this.api.fetchContainer)?[4,this.api.fetchContainer()]:[3,2]:[3,3];case 1:t=r.sent(),r.label=2;case 2:e=t||this.currentState.container,r.label=3;case 3:return[2,e]}}))}))},e.prototype.fetchItemsIfNeeded=function(e){return(0,i.__awaiter)(this,void 0,void 0,(function(){var t;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return function(e){var t=!0;return e&&e.length>0&&(t=!1),t}(e)?(t=!this.loopingItems&&this.api.fetchItems)?[4,this.api.fetchItems()]:[3,2]:[3,3];case 1:t=r.sent(),r.label=2;case 2:e=t||this.currentState.items,r.label=3;case 3:return[2,e]}}))}))},e.prototype.fetchOptionsIfNeeded=function(e){return(0,i.__awaiter)(this,void 0,void 0,(function(){var t;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return function(e){var t=!0;return e&&Object.keys(e).length>0&&(t=!1),t}(e)?(t=this.api.fetchOptions)?[4,this.api.fetchOptions()]:[3,2]:[3,3];case 1:t=r.sent(),r.label=2;case 2:e=t||this.currentState.options,r.label=3;case 3:return[2,e]}}))}))},e.prototype.updateLastParamsIfNeeded=function(e,t,r){var n=e.items,o=e.container,s=e.options;r&&(this.currentState.items=t.itemsChanged?n:this.currentState.items,this.currentState.container=t.containerChanged?(0,i.__assign)({},o):this.currentState.container,this.currentState.options=t.optionsChanged?(0,i.__assign)({},s):this.currentState.options)},e.prototype.needMoreItems=function(e){this.getMoreItems(e)},e}();const Ge=Fe;const Ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){if("true"!==a.Z.getTopUrlParam("pgdebug"))return!1;var e=o().createElement("div",{className:"version-header "},"Pro Gallery Version #",Z.Z.staticsVersion),t="";try{t=" psw"+Z.Z.top.screen.width+" piw"+Z.Z.top.innerWidth+" pbw"+Z.Z.top.document.body.clientWidth}catch(e){}var r=o().createElement("div",{className:"version-header "},a.Z.isLandscape()?"land":"port"," sw",Z.Z.screen.width,"sh",Z.Z.screen.height," iw",Z.Z.innerWidth," bw",Z.Z.document.body.clientWidth," sr","1","rc",this.props.resizeCount," oc",this.props.orientationCount," nh",this.props.newHeight," lh",this.props.lastHeight,t,"www",this.props.maxGalleryWidth);return o().createElement("div",null,e,r)},t}(o().Component);var ze=function(e){function t(t){var r=e.call(this,t)||this;return r.state={isPrinting:!1},r}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this;window.addEventListener("beforeprint",(function(){e.setState({isPrinting:!0})})),window.addEventListener("afterprint",(function(){e.setState({isPrinting:!1})}))},t.prototype.render=function(){return this.state.isPrinting?o().createElement("source",(0,i.__assign)({},this.props)):null},t}(o().Component);const je=function(e){var t=e.customImageRenderer,r=(0,i.__rest)(e,["customImageRenderer"]);return"function"==typeof t?t(e):"string"==typeof e.src?o().createElement("img",(0,i.__assign)({alt:e.alt},r)):"object"==typeof e.src?o().createElement("picture",{id:"multi_picture_"+e.id,key:"multi_picture_"+e.id},e.src.map((function(e){return e.forPrinting?o().createElement(ze,{srcSet:e.dpr,type:"image/"+e.type}):o().createElement("source",{srcSet:e.dpr||e.url,type:"image/"+e.type})})),o().createElement("img",(0,i.__assign)({alt:e.alt},r,{src:e.src[e.src.length-1].url}))):null};var Ve=function(e){function t(t){var r=e.call(this,t)||this;return r.getImageContainer=r.getImageContainer.bind(r),r.getImageContainerClassNames=r.getImageContainerClassNames.bind(r),r.getImageElement=r.getImageElement.bind(r),r.state={isHighResImageLoaded:!1},r.handleHighResImageLoad=r.handleHighResImageLoad.bind(r),r}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){try{"function"==typeof this.props.actions.setItemLoaded&&this.props.actions.setItemLoaded()}catch(e){console.error(e)}},t.prototype.handleHighResImageLoad=function(){this.setState({isHighResImageLoaded:!0});try{this.props.actions.setItemLoaded()}catch(e){console.error("Failed to load high res image",e)}},t.prototype.getImageContainerClassNames=function(){var e=this.props,t=e.isCurrentHover,r=e.options,i=e.isTransparent,n=this.state.isHighResImageLoaded;return["gallery-item-content",t?"item-content-hover":"item-content-regular","image-item","gallery-item-visible","gallery-item","gallery-item-preloaded",r.cubeImages&&"fit"===r.cubeType?"grid-fit":"",r.imageLoadingMode!==s.Z.loadingMode.COLOR||i?"":"load-with-color "+(n?"image-loaded":"")].join(" ")},t.prototype.getImageContainer=function(e,t,r){var i=this.props,n=i.imageDimensions,s=i.id,a=i.actions;return o().createElement("div",{className:t,onTouchStart:a.handleItemMouseDown,onTouchEnd:a.handleItemMouseUp,key:"image_container-"+s,"data-hook":"image-item",style:n},e(),r)},t.prototype.getImageAnimationOverlay=function(){var e=this.props,t=e.imageDimensions,r=e.options,n=e.createUrl,a=e.id,l=null;switch(r.scrollAnimation){case s.Z.scrollAnimations.BLUR:l=n(s.Z.urlSizes.RESIZED,s.Z.urlTypes.LOW_RES);break;case s.Z.scrollAnimations.MAIN_COLOR:l=n(s.Z.urlSizes.PIXEL,s.Z.urlTypes.HIGH_RES)}return l&&o().createElement("div",{key:"image_container-overlay-"+a,"data-hook":"image-item-overlay",style:(0,i.__assign)((0,i.__assign)({},t),{backgroundImage:"url("+l+")",backgroundSize:"cover",pointerEvents:"none",position:"absolute",top:0,left:0})})},t.prototype.getImageElement=function(){var e=this,t=this.props,r=t.alt,n=t.imageDimensions,l=t.createUrl,u=t.id,c=t.idx,d=t.settings,h=void 0===d?{}:d,p=t.options,g=t.isTransparent,m=this.state.isHighResImageLoaded,f=h&&h.imageProps&&"function"==typeof h.imageProps?h.imageProps(u):{},y=(n.marginLeft,n.marginTop,(0,i.__rest)(n,["marginLeft","marginTop"]));return function(){var t,n,d,h,v=[],b=a.Z.isMobile()&&!e.props.options.allowContextMenu?{"-webkit-user-select":"none","-webkit-touch-callout":"none"}:{},S=e.props.isPrerenderMode?{width:"100%",height:"100%"}:{};if(!m&&!g){var P=null,w=(0,i.__assign)({className:"gallery-item-visible gallery-item gallery-item-preloaded",key:"gallery-item-image-img-preload","data-hook":"gallery-item-image-img-preload",loading:"eager"},f);switch(p.imageLoadingMode){case s.Z.loadingMode.BLUR:P=o().createElement(je,(0,i.__assign)({alt:"",key:"image_preload_blur-"+u,src:l(s.Z.urlSizes.RESIZED,s.Z.urlTypes.LOW_RES),style:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},y),S),b)},w,{customImageRenderer:null===(t=e.props.customComponents)||void 0===t?void 0:t.customImageRenderer}));break;case s.Z.loadingMode.MAIN_COLOR:P=o().createElement(je,(0,i.__assign)({alt:"",key:"image_preload_main_color-"+u,src:l(s.Z.urlSizes.PIXEL,s.Z.urlTypes.HIGH_RES),style:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},y),S),b)},w,{customImageRenderer:null===(n=e.props.customComponents)||void 0===n?void 0:n.customImageRenderer}));break;case s.Z.loadingMode.NONE:P=null}v.push(P)}var _=!e.props.isPrerenderMode,C=(null===(d=p.stylingParams)||void 0===d?void 0:d.itemResolutionMode)===s.Z.itemResolutionMode.FULL?s.Z.urlSizes.FULL:s.Z.urlSizes.MULTI,E=l(C,s.Z.urlTypes.HIGH_RES),I=o().createElement(je,(0,i.__assign)({key:"image_highres-"+u,className:"gallery-item-visible gallery-item gallery-item-preloaded","data-hook":"gallery-item-image-img","data-idx":c,src:E,alt:"string"==typeof r?r:"",onLoad:e.handleHighResImageLoad,loading:e.props.isPrerenderMode?"lazy":"eager",style:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},y),b),!_&&S)},f,{customImageRenderer:null===(h=e.props.customComponents)||void 0===h?void 0:h.customImageRenderer}));return v.push(I),v}},t.prototype.render=function(){var e=this.getImageElement(),t=this.getImageContainerClassNames()+" "+(this.props.extraClasses||""),r=this.props.overlay||this.getImageAnimationOverlay();return this.getImageContainer(e,t,r)},t}(o().Component);const Ke=Ve;const qe=function(e){return function(t){function r(e){var r=t.call(this,e)||this;return r.onMouseMove=r.onMouseMove.bind(r),r.onMouseDown=r.onMouseDown.bind(r),r.onMouseUp=r.onMouseUp.bind(r),r.isMagnifiedBiggerThanContainer=r.isMagnifiedBiggerThanContainer.bind(r),r.toggleMagnify=r.toggleMagnify.bind(r),r.getMagnifyInitialPos=r.getMagnifyInitialPos.bind(r),r.getBoundrys=r.getBoundrys.bind(r),r.getMagnifiedDimensions=r.getMagnifiedDimensions.bind(r),r.containerRef=null,r.state={shouldMagnify:!1,x:0,y:0},r}return(0,i.__extends)(r,t),r.prototype.onDragStart=function(e){e.preventDefault()},r.prototype.onMouseMove=function(e){if(this.dragStarted){var t=this.getMagnifiedDimensions(),r=t.magnifiedWidth,i=t.magnifiedHeight;this.isDragging=!0;var n=this.props.style,o=n.cubedWidth,s=n.cubedHeight,a=e.clientY,l=e.clientX,u=this.getBoundrys(),c=u.boundryY,d=u.boundryX;this.setState({x:Math.max(-d,Math.min(this.dragStartX-l,r-o)),y:Math.max(-c,Math.min(this.dragStartY-a,i-s))})}},r.prototype.onMouseDown=function(e){var t=e.clientX,r=e.clientY,i=this.state,n=i.x,o=i.y;i.shouldMagnify?(this.dragStartX=n+t,this.dragStartY=o+r,this.dragStarted=!0):this.setState(this.getMagnifyInitialPos(e))},r.prototype.onMouseUp=function(){this.isDragging||this.toggleMagnify(),this.dragStarted=!1,this.isDragging=!1},r.prototype.toggleMagnify=function(e){var t=this.state.shouldMagnify;"boolean"==typeof e?this.setState({shouldMagnify:e}):this.setState({shouldMagnify:!t})},r.prototype.getMagnifiedDimensions=function(){var e=this.props,t=e.style,r=t.innerHeight,i=t.innerWidth,n=e.options.behaviourParams.item.content.magnificationValue;return{magnifiedHeight:r*n,magnifiedWidth:i*n}},r.prototype.getPreloadImage=function(){var e,t=this.props,r=t.createUrl,i=t.id,n=t.style,a=t.imageDimensions,l=t.options,u=n.innerWidth,c=n.innerHeight,d=a.marginTop,h=a.marginLeft,p=this.state,g=p.shouldMagnify,m=p.x,f=p.y,y=l.behaviourParams.item.content.magnificationValue,v=r(s.Z.urlSizes.RESIZED,s.Z.urlTypes.HIGH_RES),b=g?y:1;return o().createElement(je,{alt:"",key:"magnified-item-preload-"+i,className:"magnified-item-preload",src:v,style:{width:u,height:c,position:"relative",zIndex:1,opacity:g?1:0,transform:"scale("+b+")",transformOrigin:(m+h)/(y-1)+"px "+(f+d)/(y-1)+"px",transition:"transform 0.3s ease"+(g?"":", opacity 0.1s ease 0.3s")},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})},r.prototype.getHighResImage=function(){var e,t=this.props,r=t.createMagnifiedUrl,i=t.id,n=t.alt,s=t.options,a=this.getMagnifiedDimensions(),l=a.magnifiedWidth,u=a.magnifiedHeight,c=r(s.behaviourParams.item.content.magnificationValue);return o().createElement(je,{key:"magnified-item-"+i,className:"magnified-item","data-hook":"magnified-item",src:c,alt:"string"==typeof n?n:"untitled image",id:i,style:{width:l,height:u,position:"absolute"},customImageRenderer:null===(e=this.props.customComponents)||void 0===e?void 0:e.customImageRenderer})},r.prototype.isMagnifiedBiggerThanContainer=function(e){var t=this.getMagnifiedDimensions(),r=t.magnifiedWidth,i=t.magnifiedHeight,n=e.cubedWidth,o=e.cubedHeight;return n0&&{borderRadius:e}),t>0&&{borderWidth:t+"px",borderColor:a.Z.formatColor(r),borderStyle:"solid"})}function ot(e,t,r,n){var o=(0,i.__assign)((0,i.__assign)({},s.Z.hasExternalHorizontalPlacement(e)&&{height:r,float:s.Z.isExternalRightPlacement(e)?"right":"left"}),s.Z.hasExternalVerticalPlacement(e)&&{height:n,boxSizing:"content-box"});return t.imageInfoType===s.Z.infoType.SEPARATED_BACKGROUND?(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},o),nt(t.textBoxBorderRadius,t.textBoxBorderWidth,t.textBoxBorderColor)),s.Z.hasExternalAbovePlacement(e)&&{marginBottom:t.textImageSpace}),s.Z.hasExternalBelowPlacement(e)&&{marginTop:t.textImageSpace}):o}function st(e,t,r,n){var o=(0,i.__assign)((0,i.__assign)({},(t.imageInfoType===s.Z.infoType.SEPARATED_BACKGROUND||t.imageInfoType===s.Z.infoType.ATTACHED_BACKGROUND)&&t.textBoxFillColor&&t.textBoxFillColor.value&&{backgroundColor:t.textBoxFillColor.value}),{overflow:"hidden",boxSizing:"border-box"}),a=s.Z.hasExternalVerticalPlacement(e),l=s.Z.hasExternalHorizontalPlacement(e);return(0,i.__assign)((0,i.__assign)((0,i.__assign)({},o),a&&function(e,t){return{width:"100%",height:t}}(0,r)),l&&function(e,t){return{height:"100%",width:t}}(0,n))}var at=r(23615),lt=r.n(at),ut=function(e){var t=e.size,r=(0,i.__rest)(e,["size"]);return o().createElement("svg",(0,i.__assign)({viewBox:"0 0 60 60",fill:"currentColor",width:t||"60",height:t||"60"},r),o().createElement("path",{d:"M30,0c16.6,0,30,13.4,30,30S46.6,60,30,60C13.4,60,0,46.6,0,30S13.4,0,30,0z",fillRule:"evenodd",clipRule:"evenodd"}))};ut.displayName="play_background",ut.propTypes={size:lt().string};const ct=ut;var dt=function(e){var t=e.size,r=(0,i.__rest)(e,["size"]);return o().createElement("svg",(0,i.__assign)({viewBox:"0 0 60 60",fill:"currentColor",width:t||"60",height:t||"60"},r),o().createElement("path",{d:"M41.5,30l-17,10V20L41.5,30z"}))};dt.displayName="play_triangle",dt.propTypes={size:lt().string};const ht=dt;const pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){return o().createElement(Ke,(0,i.__assign)({overlay:this.props.videoPlayButton,extraClasses:" video-item gallery-item-video"},this.props))},t}(o().Component);var gt=a.Z.isiOS(),mt=function(e){return(e.videoUrl||e.url).includes("youtube.com")&>},ft=function(e){var t=e.pointerEvents;return o().createElement("div",{style:{pointerEvents:t?"initial":"none"}},o().createElement("i",{key:"play-triangle","data-hook":"play-triangle",className:"gallery-item-video-play-triangle play-triangle "},o().createElement(ht,null)),o().createElement("i",{key:"play-bg","data-hook":"play-background",className:"gallery-item-video-play-background play-background "},o().createElement(ct,null)))};const yt=function(e){function t(t){var r=e.call(this,t)||this;return r.mightPlayVideo=r.mightPlayVideo.bind(r),r.createVideoPlaceholder=r.createVideoPlaceholder.bind(r),r.state={VideoItemLoaded:!1},r}return(0,i.__extends)(t,e),t.prototype.mightPlayVideo=function(){var e=this.props.options,t=e.videoPlay,r=e.itemClick,i=this.props.hasLink;return!this.props.isVideoPlaceholder&&("hover"===t||"auto"===t||("nothing"===r||"link"===r&&!i))},t.prototype.createVideoPlaceholder=function(e){var t=a.Z.pick(this.props,["alt","title","description","id","idx","options","createUrl","settings","actions","isCurrentHover","customComponents"]);return o().createElement(pt,(0,i.__assign)({},t,{key:"videoPlaceholder",imageDimensions:this.props.imageDimensions,isThumbnail:!!this.props.thumbnailHighlightId,id:this.props.idx,videoPlayButton:e&&!this.mightPlayVideo()&&o().createElement(ft,{pointerEvents:!mt(this.props)})}))},t.prototype.componentDidMount=function(){return(0,i.__awaiter)(this,void 0,void 0,(function(){var e;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:if((0,We.wh)())return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,r.e(6158).then(r.bind(r,62867))];case 2:return e=t.sent(),this.VideoItem=e.default,this.mightPlayVideo()&&this.setState({VideoItemLoaded:!0}),[3,4];case 3:return t.sent(),console.error("Failed to fetch VideoItem"),[3,4];case 4:return[2]}}))}))},t.prototype.render=function(){var e=this.props.hover,t=!this.props.hidePlay&&this.props.options.showVideoPlayButton,r=this.createVideoPlaceholder(t),n=this.VideoItem;if(!this.mightPlayVideo()||!n)return o().createElement("div",null,(0,Je.WT)(this.props.options)&&r,e);var s=mt(this.props);return o().createElement(n,(0,i.__assign)({},this.props,{loadVideo:this.props.loadVideo||s,videoPlaceholder:r,videoPlayButton:t&&o().createElement(ft,{pointerEvents:!s})}))},t}(o().Component);function vt(e){return(0,i.__assign)((0,i.__assign)({},e),{isMobile:a.Z.isMobile()})}var bt=function(e,t){var r=e.idx,i=e.activeIndex,n=e.options;void 0===t&&(t=!1);var o=n.isRTL;switch(n.slideAnimation){case s.Z.slideAnimations.FADE:return"fade fade-"+(i===r?"visible":"hidden");case s.Z.slideAnimations.DECK:return ir?"deck-before"+(o?"-rtl":""):{};default:return{}}},St=$e(Xe),Pt=$e(Ye),wt=function(e){function t(t){var r=e.call(this,t)||this;return r.shouldUseDirectLink=function(){var e=r.props.directLink||{},t=e.url,i=e.target,n=!(!t||!i||"link"!==r.props.options.itemClick);return r.shouldShowHoverOnMobile()&&r.isClickOnCurrentHoveredItem()&&n?(r.props.actions.eventsListener(s.Z.events.HOVER_SET,-1),!0):!(!n||r.shouldShowHoverOnMobile())},r.isClickOnCurrentHoveredItem=function(){return r.state.isCurrentHover||r.props.options.hoveringBehaviour===s.Z.infoBehaviourOnHover.NO_CHANGE},r.props.actions.eventsListener(s.Z.events.ITEM_CREATED,r.props),r.init(),r.state={isCurrentHover:!1,itemWasHovered:!1},r.activeElement="",r}return(0,i.__extends)(t,e),t.prototype.init=function(){this.onItemClick=this.onItemClick.bind(this),this.onItemWrapperClick=this.onItemWrapperClick.bind(this),this.onItemInfoClick=this.onItemInfoClick.bind(this),this.onContainerKeyUp=this.onContainerKeyUp.bind(this),this.onAnchorKeyDown=this.onAnchorKeyDown.bind(this),this.handleItemMouseDown=this.handleItemMouseDown.bind(this),this.handleItemMouseUp=this.handleItemMouseUp.bind(this),this.setItemLoaded=this.setItemLoaded.bind(this),this.isHighlight=this.isHighlight.bind(this),this.getItemHover=this.getItemHover.bind(this),this.getImageItem=this.getImageItem.bind(this),this.getVideoItem=this.getVideoItem.bind(this),this.getTextItem=this.getTextItem.bind(this),this.getItemInner=this.getItemInner.bind(this),this.getItemContainerStyles=this.getItemContainerStyles.bind(this),this.getItemWrapperStyles=this.getItemWrapperStyles.bind(this),this.getItemAriaLabel=this.getItemAriaLabel.bind(this),this.getItemContainerClass=this.getItemContainerClass.bind(this),this.getItemWrapperClass=this.getItemWrapperClass.bind(this),this.getItemContainerTabIndex=this.getItemContainerTabIndex.bind(this),this.isIconTag=this.isIconTag.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.onFocus=this.onFocus.bind(this),this.onBlur=this.onBlur.bind(this),this.checkIfCurrentHoverChanged=this.checkIfCurrentHoverChanged.bind(this)},t.prototype.setItemLoaded=function(){this.props.actions.eventsListener(s.Z.events.ITEM_LOADED,this.props),this.setState({loaded:!0})},t.prototype.isIconTag=function(e){return["button","i","a","svg","path"].indexOf(e.toLowerCase())>=0},t.prototype.onMouseEnter=function(){a.Z.isMobile()||this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx)},t.prototype.onMouseLeave=function(){a.Z.isMobile()||this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1)},t.prototype.onFocus=function(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx),this.props.actions.eventsListener(s.Z.events.ITEM_FOCUSED,this.props)},t.prototype.onBlur=function(){var e;(null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)&&this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1),this.props.actions.eventsListener(s.Z.events.ITEM_LOST_FOCUS,this.props)},t.prototype.onContainerKeyUp=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),this.onItemClick(e,"item-container",!1),this.shouldUseDirectLink()&&this.itemAnchor.click(),!1;default:return!0}},t.prototype.onAnchorKeyDown=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.stopPropagation(),this.onItemClick(e,"item-container",!1),!1;default:return!0}},t.prototype.handleGalleryItemAction=function(e){this.props.actions.eventsListener(s.Z.events.ITEM_ACTION_TRIGGERED,this.props,e)},t.prototype.onItemWrapperClick=function(e){this.onItemClick(e,"item-media")},t.prototype.onItemInfoClick=function(e){this.onItemClick(e,"item-info",!1),e.stopPropagation()},t.prototype.onItemClick=function(e,t,r){void 0===r&&(r=!0),a.Z.isFunction(a.Z.get(Z.Z,"galleryWixCodeApi.onItemClicked"))&&Z.Z.galleryWixCodeApi.onItemClicked(this.props),this.props.actions.eventsListener(s.Z.events.ITEM_CLICKED,(0,i.__assign)((0,i.__assign)({},this.props),{clickTarget:t}),e),this.shouldUseDirectLink()||(r&&e.preventDefault(),this.shouldShowHoverOnMobile()||this.shouldShowSecondMediaOnMobile()?setTimeout(this.handleHoverClickOnMobile(e),0):this.handleGalleryItemAction(e))},t.prototype.handleHoverClickOnMobile=function(e){this.isClickOnCurrentHoveredItem()?(this.handleGalleryItemAction(e),this.props.actions.eventsListener(s.Z.events.HOVER_SET,-1)):this.props.actions.eventsListener(s.Z.events.HOVER_SET,this.props.idx)},t.prototype.handleItemMouseDown=function(){return!0},t.prototype.handleItemMouseUp=function(){return a.Z.isMobile()&&this.longPressTimer&&clearTimeout(this.longPressTimer),!0},t.prototype.shouldShowHoverOnMobile=function(){if(a.Z.isMobile()){var e=this.props.options,t=e.titlePlacement,r=e.hoveringBehaviour,i=e.itemClick,n=e.alwaysShowHover,o=e.previewHover,l=e.allowDescription,u=e.allowTitle,c=e.isStoreGallery,d=ve.supports.mobileSettings;if(r===s.Z.infoBehaviourOnHover.NEVER_SHOW)return!1;if("nothing"===i&&"video"!==this.props.type)return!0;if(this.props.customComponents.customHoverRenderer&&s.Z.hasHoverPlacement(t)&&r!==s.Z.infoBehaviourOnHover.NEVER_SHOW&&d&&(l||u||c))return!0;if(n)return!0;if((0,We.wh)()&&o)return!0}return!1},t.prototype.shouldShowSecondMediaOnMobile=function(){return!!a.Z.isMobile()&&("nothing"===this.props.options.itemClick&&"video"!==this.props.type&&this.props.options.behaviourParams.item.secondaryMedia.trigger===s.Z.secondaryMediaTrigger.HOVER)},t.prototype.isHighlight=function(){return this.props.thumbnailHighlightId&&this.props.thumbnailHighlightId===this.props.id},t.prototype.shouldHover=function(){var e=this.props.options,t=e.alwaysShowHover,r=e.previewHover,i=e.hoveringBehaviour,n=e.overlayAnimation,o=s.Z.infoBehaviourOnHover,l=o.NEVER_SHOW,u=o.APPEARS,c=s.Z.overlayAnimations.NO_EFFECT;return i!==l&&(!0===t||(!(!(0,We.wh)()||!r)||!(i===u&&n===c&&!this.state.itemWasHovered)&&(!a.Z.isMobile()||this.shouldShowHoverOnMobile())))},t.prototype.getItemHover=function(e){var t=this,r=this.props,n=r.customComponents,s=(0,i.__rest)(r,["customComponents"]);return this.shouldHover()&&o().createElement(Qe,(0,i.__assign)({},s,{forceShowHover:this.simulateOverlayHover(),isCurrentHover:this.simulateHover(),imageDimensions:e,itemWasHovered:this.state.itemWasHovered,key:"hover",actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp},renderCustomInfo:n.customHoverRenderer?function(){return n.customHoverRenderer(vt(t.props))}:null}))},t.prototype.getImageItem=function(e){var t=a.Z.pick(this.props,["gotFirstScrollEvent","alt","title","description","id","idx","options","createUrl","createMagnifiedUrl","settings","isPrerenderMode","isTransparent","style","hasSecondaryMedia","secondaryMediaItem","customComponents"]);return o().createElement(St,(0,i.__assign)({},t,{key:"imageItem",imageDimensions:e,isThumbnail:!!this.props.thumbnailHighlightId,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))},t.prototype.getVideoItem=function(e,t){return o().createElement(yt,(0,i.__assign)({},this.props,{shouldPlay:this.props.idx===this.props.playingVideoIdx,key:"video"+this.props.idx,hover:t,imageDimensions:e,hasLink:this.itemHasLink(),isCurrentHover:this.simulateHover(),actions:(0,i.__assign)((0,i.__assign)({},this.props.actions),{setItemLoaded:this.setItemLoaded,handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp})}))},t.prototype.getTextItem=function(e){var t=a.Z.pick(this.props,["id","options","style","html","cropRatio","isPrerenderMode","hasSecondaryMedia","secondaryMediaItem"]);return o().createElement(Pt,(0,i.__assign)({},t,{key:"textItem",imageDimensions:e,isCurrentHover:this.simulateHover(),itemWasHovered:this.state.itemWasHovered,actions:{handleItemMouseDown:this.handleItemMouseDown,handleItemMouseUp:this.handleItemMouseUp,setItemLoaded:this.setItemLoaded}}))},t.prototype.getItemInner=function(){var e,t=this.props,r=t.type,i=t.style,n=t.offset,s={width:i.innerWidth,height:i.innerHeight,marginTop:n.innerTop,marginLeft:n.innerLeft},a=null;switch(this.shouldHover()&&(a=this.getItemHover(s)),r){case"dummy":e=o().createElement("div",null);break;case"video":e=this.getVideoItem(s,a);break;case"text":e=[this.getTextItem(s),a];break;default:e=this.props.isVideoPlaceholder?this.getVideoItem(s,a):[this.getImageItem(s),a]}return e},t.prototype.getRightInfoElementIfNeeded=function(){return s.Z.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_ON_THE_RIGHT,"gallery-item-right-info"):null},t.prototype.getLeftInfoElementIfNeeded=function(){return s.Z.hasExternalLeftPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_ON_THE_LEFT,"gallery-item-left-info"):null},t.prototype.getBottomInfoElementIfNeeded=function(){return s.Z.hasExternalBelowPlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_BELOW,"gallery-item-bottom-info"):null},t.prototype.getTopInfoElementIfNeeded=function(){return s.Z.hasExternalAbovePlacement(this.props.options.titlePlacement,this.props.idx)?this.getExternalInfoElement(s.Z.placements.SHOW_ABOVE,"gallery-item-top-info"):null},t.prototype.getExternalInfoElement=function(e,t){var r=this.props,n=r.options,a=r.customComponents,l=r.style;if(!a.customInfoRenderer)return null;var u=n.textBoxHeight+(this.hasRequiredMediaUrl?0:l.height),c=l.infoWidth+(this.hasRequiredMediaUrl?0:l.width),d=a.customInfoRenderer(vt(this.props),e),h=s.Z.isLayout("SLIDESHOW")(this.props.options);return o().createElement("div",{className:"gallery-item-common-info-outer "+bt(this.props,h),style:(0,i.__assign)({},ot(e,n,l.height,n.textBoxHeight))},o().createElement("div",{style:st(e,n,u,c),className:"gallery-item-common-info "+t,onClick:this.onItemInfoClick},d))},t.prototype.simulateHover=function(){return this.state.isCurrentHover||!0===this.props.options.alwaysShowHover||(0,We.wh)()&&this.props.options.previewHover},t.prototype.simulateOverlayHover=function(){return this.simulateHover()||this.props.options.hoveringBehaviour===s.Z.infoBehaviourOnHover.NO_CHANGE},t.prototype.itemHasLink=function(){var e=this.props,t=e.linkData,r=e.linkUrl;return!(void 0===t.type&&(void 0===r||""===r))},t.prototype.getItemContainerStyles=function(){var e,t=this.props,r=t.idx,n=t.activeIndex,o=t.offset,a=t.style,l=t.options,u=t.settings,c=void 0===u?{}:u,d=l.scrollDirection,h=l.imageMargin,p=l.isRTL,g=l.slideAnimation,m=rt(l),f={overflowY:"hidden",position:"absolute",bottom:"auto",margin:d===s.Z.scrollDirection.HORIZONTAL?h/2+"px":0},y=c.avoidInlineStyles,v=this.props.isPrerenderMode&&!this.props.settings.disableSSROpacity,b=y?{}:{opacity:v?0:1,display:v?"none":"block",transition:"opacity .2s ease"},S=y?{}:{top:o.top,left:p?"auto":o.left,right:p?o.left:"auto",width:a.width+a.infoWidth,height:a.height+a.infoHeight};switch(g){case s.Z.slideAnimations.FADE:e={left:p?"auto":0,right:p?0:"auto",pointerEvents:n===r?"auto":"none",zIndex:n===r?0:1};break;case s.Z.slideAnimations.DECK:e={left:p?"auto":0,right:p?0:"auto",pointerEvents:n===r?"auto":"none",zIndex:Math.sign(n-r)};break;default:e={}}var P=this.state.loaded&&((0,We.wh)()||(0,We.g4)())?{transition:"all .4s ease",transitionProperty:"top, left, width, height, opacity"}:{transition:"none"};return(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},f),S),m),P),b),e)},t.prototype.getItemWrapperStyles=function(){var e=this.props,t=e.createUrl,r=e.options,i=e.style,n=e.type,o=i.height,a=i.width,l={};return l.backgroundColor="text"===n?"fit"!==r.cubeType?"transparent":"inherit":("fit"!==r.cubeType?i.bgColor:"inherit")||"transparent",r.imageHoverAnimation===s.Z.imageHoverAnimations.MAIN_COLOR&&(l.background="url("+t(s.Z.urlSizes.PIXEL,s.Z.urlTypes.HIGH_RES)+")"),l.height=o+"px",l.width=a+"px",l.margin=-r.itemBorderWidth+"px",l},t.prototype.getItemAriaLabel=function(){var e=this.props,t=e.type,r=e.alt,i=e.htmlContent,n=e.options;return{dummy:"",text:i,video:r||"",image:r||""}[t]+(n.isStoreGallery?", Buy Now":"")},t.prototype.isItemClickable=function(e){var t=!this.itemHasLink();return!(e.itemClick===s.Z.itemClick.NOTHING||e.itemClick===s.Z.itemClick.LINK&&t)},t.prototype.getItemContainerClass=function(){var e=this.props.options,t=e.imagePlacementAnimation,r=e.overlayAnimation,i=e.imageHoverAnimation,n=this.simulateHover(),o={"gallery-item-container":!0,"item-container-regular":!n,"item-container-hover":n,"has-custom-focus":!0,visible:!0,"pro-gallery-highlight":this.isHighlight(),clickable:this.isItemClickable(e),"simulate-hover":this.simulateHover(),"hide-hover":!this.simulateHover()&&a.Z.isMobile(),"invert-hover":e.hoveringBehaviour===s.Z.infoBehaviourOnHover.DISAPPEARS,"animation-slide":t===s.Z.imagePlacementAnimations.SLIDE,"hover-animation-fade-in":r===s.Z.overlayAnimations.FADE_IN,"hover-animation-expand":r===s.Z.overlayAnimations.EXPAND,"hover-animation-slide-up":r===s.Z.overlayAnimations.SLIDE_UP,"hover-animation-slide-right":r===s.Z.overlayAnimations.SLIDE_RIGHT,"hover-animation-slide-down":r===s.Z.overlayAnimations.SLIDE_DOWN,"hover-animation-slide-left":r===s.Z.overlayAnimations.SLIDE_LEFT,"main-color-on-hover":i===s.Z.imageHoverAnimations.MAIN_COLOR,"zoom-in-on-hover":i===s.Z.imageHoverAnimations.ZOOM_IN,"blur-on-hover":i===s.Z.imageHoverAnimations.BLUR,"grayscale-on-hover":i===s.Z.imageHoverAnimations.GRAYSCALE,"shrink-on-hover":i===s.Z.imageHoverAnimations.SHRINK,"invert-on-hover":i===s.Z.imageHoverAnimations.INVERT,"color-in-on-hover":i===s.Z.imageHoverAnimations.COLOR_IN,"darkened-on-hover":i===s.Z.imageHoverAnimations.DARKENED,"pro-gallery-mobile-indicator":a.Z.isMobile()};return Object.entries(o).map((function(e){var t=e[0];return!!e[1]&&t})).filter(Boolean).join(" ")},t.prototype.getItemWrapperClass=function(){var e=this.props,t=e.options,r=e.type,i=["gallery-item-wrapper","visible"];return t.cubeImages&&i.push("cube-type-"+t.cubeType),"text"===r&&i.push("gallery-item-wrapper-text"),i.push(bt(this.props)),i.join(" ")},t.prototype.getItemContainerTabIndex=function(){return this.isHighlight()?a.Z.getTabIndex("currentThumbnail"):this.props.activeIndex===this.props.idx?a.Z.getTabIndex("currentGalleryItem"):-1},t.prototype.componentDidMount=function(){if(a.Z.isMobile()&&"function"==typeof o().initializeTouchEvents)try{o().initializeTouchEvents(!0)}catch(e){console.error(e)}Z.Z.addEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},t.prototype.componentWillUnmount=function(){clearTimeout(this.itemLoadedTimeout),Z.Z.removeEventListener("current_hover_change",this.checkIfCurrentHoverChanged)},t.prototype.componentDidUpdate=function(e){(0,Je.sq)({prevProps:e,currentProps:this.props,itemContainer:this.itemContainer})},t.prototype.checkIfCurrentHoverChanged=function(e){e.galleryId===this.props.galleryId&&(this.state.isCurrentHover||e.currentHoverIdx!==this.props.idx?this.state.isCurrentHover&&e.currentHoverIdx!==this.props.idx&&this.setState({isCurrentHover:!1}):this.setState({isCurrentHover:!0,itemWasHovered:!0}))},t.prototype.onContextMenu=function(e){a.Z.isDev()||this.props.options.allowContextMenu||e.preventDefault(e)},t.prototype.getItemAriaRole=function(){switch(this.props.options.itemClick){case"expand":case"fullscreen":return"button";case"link":return"link";default:return""}},t.prototype.composeItem=function(){var e,t=this,r=this.props,n=r.photoId,a=r.id,l=r.hash,u=r.idx,c=r.options,d=r.type,h=r.url;this.hasRequiredMediaUrl=h||"text"===d;var p=c.titlePlacement!==s.Z.placements.SHOW_ON_HOVER&&!this.hasRequiredMediaUrl,g=o().createElement("div",{className:this.getItemContainerClass(),onContextMenu:function(e){return t.onContextMenu(e)},id:tt.getSellectorDomId(this.props),ref:function(e){return t.itemContainer=e},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:this.onFocus,onBlur:this.onBlur,tabIndex:this.getItemContainerTabIndex(),"aria-label":this.getItemAriaLabel(),"data-hash":l,"data-id":n,"data-idx":u,role:this.getItemAriaRole(),"data-hook":"item-container",key:"item-container-"+a,style:this.getItemContainerStyles(),onKeyUp:this.onContainerKeyUp,onClick:this.onItemWrapperClick},this.getTopInfoElementIfNeeded(),this.getLeftInfoElementIfNeeded(),o().createElement("div",{style:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},it(this.props.options)),s.Z.hasExternalRightPlacement(this.props.options.titlePlacement,this.props.idx)&&{float:"left"}),s.Z.hasExternalLeftPlacement(this.props.options.titlePlacement,this.props.idx)&&{float:"right"})},!p&&o().createElement("div",{"data-hook":"item-wrapper",className:this.getItemWrapperClass(),key:"item-wrapper-"+a,id:"item-wrapper-"+a,style:this.getItemWrapperStyles()},this.getItemInner())),this.getRightInfoElementIfNeeded(),this.getBottomInfoElementIfNeeded()),m=function(e){var t=e.directLink,r=e.options,n=e.directShareLink,o=e.noFollowForSEO,a=(0,We.Vg)();if(r.itemClick===s.Z.itemClick.LINK){var l=t||{},u=l.url,c=l.target,d=a&&o?{rel:"nofollow"}:{};return u&&c?(0,i.__assign)({href:u,target:c},d):{}}if(r.itemClick===s.Z.itemClick.FULLSCREEN||r.itemClick===s.Z.itemClick.EXPAND){var h=!!(u=n);return d=r.shouldIndexDirectShareLinkInSEO?{}:{rel:"nofollow"},h?(0,i.__assign)({href:u,"data-cancel-link":!0},d):{}}}(this.props),f={ref:function(e){return t.itemAnchor=e},"data-id":n,className:"item-link-wrapper","data-idx":u,"data-hook":"item-link-wrapper",onFocus:function(){(0,Je.VD)({itemAnchor:t.itemAnchor,enableExperimentalFeatures:t.props.enableExperimentalFeatures,itemContainer:t.itemContainer})},tabIndex:-1,onKeyDown:function(e){t.onAnchorKeyDown(e)}};return(null===(e=null==m?void 0:m.href)||void 0===e?void 0:e.length)>0?o().createElement("a",(0,i.__assign)({key:"item-container-link-"+a},f,m),g):o().createElement("div",(0,i.__assign)({key:"item-container-div-"+a},f),g)},t.prototype.render=function(){return this.composeItem()},t}(o().Component);const _t=wt;var Ct=function(e){function t(t){var r=e.call(this,t)||this;return r.handleKeys=r.handleKeys.bind(r),r.showMoreItems=r.showMoreItems.bind(r),r.createGalleryConfig=r.createGalleryConfig.bind(r),r.screenLogs=r.screenLogs.bind(r),r.createGallery=r.createGallery.bind(r),r.id=Date.now()+"|"+Math.floor(1e4*Math.random()),r.state={activeIndex:0},r}return(0,i.__extends)(t,e),t.prototype.handleKeys=function(e){var t=Z.Z.document.activeElement.getAttribute("data-idx");if(t){var r=this.props.actions.findNeighborItem||this.props.galleryStructure.findNeighborItem||function(){},i=Number(t),n=-1;switch(e.keyCode||e.charCode){case 38:n=r(i,"up");break;case 37:n=r(i,this.props.options.isRTL?"right":"left");break;case 40:if(n=r(i,"down"),this.props.totalItemsCount-1===n&&n===this.state.activeIndex)return e.stopPropagation(),a.Z.focusGalleryElement(this.props.outOfViewComponent),!1;break;case 39:n=r(i,this.props.options.isRTL?"left":"right");break;case 27:return e.stopPropagation(),a.Z.focusGalleryElement(this.props.galleryContainerRef),!1}if(n>this.lastVisibleItemIdx()&&(n=i),n>=0)return e.preventDefault(),e.stopPropagation(),a.Z.setStateAndLog(this,"Set Gallery Current Item",{activeIndex:n}),!1}return!0},t.prototype.lastVisibleItemIdxInHeight=function(e){for(var t=this.props.galleryStructure.items.length-1;t>=0;t--){if(this.props.galleryStructure.items[t].offset.topa-f*g&&ithis.props.container.height){var r=e.loadMoreButtonText||"Load More";t=o().createElement("div",{className:"show-more-container"+(a.Z.isMobile()?" pro-gallery-mobile-indicator":"")},o().createElement("button",{tabIndex:a.Z.getTabIndex("loadMoreButton"),id:"show-more-"+this.props.id,className:"show-more",onClick:this.showMoreItems,onMouseDown:function(e){return e.preventDefault()},"data-hook":"show-more","aria-label":r},r))}return t},t.prototype.render=function(){a.Z.isVerbose()&&(console.count("galleryView render"),console.time("Rendering Gallery took "),console.log("[DEBUG_RENDER] GalleryView options",this.props.options),console.log("[DEBUG_RENDER] GalleryView props have changed",a.Z.printableObjectsDiff(this.lastProps||{},this.props)),this.lastProps=(0,i.__assign)({},this.props),console.log("[DEBUG_RENDER] GalleryView state changed",a.Z.printableObjectsDiff(this.lastState||{},this.state)),this.lastState=(0,i.__assign)({},this.state),this.renderCount=(this.renderCount||0)+1);var e=this.createShowMoreButton(),t=this.createGallery(e);a.Z.isVerbose()&&console.timeEnd("Rendering Gallery took ");var r=this.screenLogs();return o().createElement("div",(0,i.__assign)({className:"pro-gallery-parent-container",key:"pro-gallery-"+this.id},a.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel})),r,t,e)},t}(o().Component);const Et=Ct;const It=function(e){function t(t){var r=e.call(this,t)||this;return r.displayName="GroupView",r.dom=[],r.state={},r}return(0,i.__extends)(t,e),t.prototype.createDom=function(e,t){var r=this;return this.props.items.map((function(n){var s=n.renderProps((0,i.__assign)((0,i.__assign)({},r.props.galleryConfig),{visible:e}));return o().createElement(_t,(0,i.__assign)((0,i.__assign)({},s),{type:null!=t&&t?"dummy":s.type}))}))},t.prototype.shouldRender=function(){var e=this.props.items;return!!(e&&e.length&&e[0])},t.prototype.isVisible=function(){var e=this.props,t=e.items,r=e.galleryConfig;if(this.props.allowLoop){var i=t[t.length-1].idx,n=r.activeIndex,o=r.totalItemsCount,s=n-i,a=Math.floor(o/2);return Math.abs(s)<=a}return!0},t.prototype.render=function(){var e=this.props.galleryConfig.options.isRTL;return this.shouldRender()?o().createElement("div",{key:"group_"+this.props.idx+"_"+this.props.items[0].id,"data-hook":"group-view",style:{"--group-top":this.props.top+"px","--group-left":e?"auto":this.props.left+"px","--group-width":this.props.width+"px","--group-right":e?this.props.left+"px":"auto"},"aria-hidden":this.props.ariaHidden},this.createDom(this.isVisible(),this.props.shouldRenderEmpty)):null},t}(o().Component);var Ot=function(e){var t=e.size,r=(0,i.__rest)(e,["size"]);return o().createElement("svg",(0,i.__assign)({viewBox:"0 0 11 14",fill:"currentColor",width:t||"11",height:t||"14"},r),o().createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Pause",transform:"translate(-490 -763)",fill:"currentColor"},o().createElement("g",{id:"Group-2",transform:"translate(470 284)"},o().createElement("g",{id:"Group",transform:"translate(20 479)"},o().createElement("path",{id:"play",d:"M0.0788076641 0L0 14 10.5 6.81856071z"}))))))};Ot.displayName="play",Ot.propTypes={size:lt().string};const xt=Ot;var At=function(e){var t=e.size,r=(0,i.__rest)(e,["size"]);return o().createElement("svg",(0,i.__assign)({viewBox:"0 0 10 14",fill:"currentColor",width:t||"10",height:t||"14"},r),o().createElement("g",{id:"final",stroke:"none",fill:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Play",transform:"translate(-490 -763)",fill:"currentColor"},o().createElement("g",{id:"Group-2",transform:"translate(470 284)"},o().createElement("g",{id:"Group",transform:"translate(20 479)"},o().createElement("path",{d:"M7,0 L10,0 L10,14 L7,14 L7,0 Z M0,0 L3,0 L3,14 L0,14 L0,0 Z",id:"_copy_3"}))))))};At.displayName="pause",At.propTypes={size:lt().string};const Tt=At;function Lt(e,t){var r;return(r=t,a.Z.uniqueBy(r,"idx").filter((function(e){return void 0!==e.idx})).sort((function(e,t){return e.idx-t.idx}))).map((function(t){return{item:e.find((function(e){return e.id===t.id})),thumbnailItem:t,idx:t.idx}}))}function Mt(e){var t=e.options,r=e.activeIndex,n=e.items,o=e.thumbnailAlignment,l=e.galleryStructure,u=e.containerWidth,c=e.containerHeight,d=e.activeIndexOffsetMemory,h=void 0===d?r:d,p=e.prevActiveIndex,g=void 0===p?r:p,m=Lt(n,l.galleryItems);h=function(e){var t=e.activeIndex,r=e.prevActiveIndex,i=e.activeIndexOffsetMemory,n=e.items.length;if(t===r)return i;t=a.Z.inRange(t,n);var o=Math.abs(r-t),s=Math.abs(r-n-t),l=Math.abs(r+n-t);return le,o=e>r-i;return"left"===t.props.direction?n:o},t.onNavigation=function(e){e.preventDefault(),e.stopPropagation(),t.props.onNavigate()},t}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this;return o().createElement(Ut,{getElement:function(){return Gt(e.props.id)},render:function(t,r){var i;return o().createElement(o().Fragment,null,e.props.children(t,r),o().createElement("style",null,"\n #"+(null===(i=Gt(e.props.id))||void 0===i?void 0:i.id)+" * {\n cursor: none !important;\n }\n "))},shouldRenderAtPosition:this.shouldRender,onClick:this.onNavigation,throttle:50})},t}(o().Component);var Kt;Kt=new Map,Wt((function(e){return Kt.get(e)||Kt.set(e,(function(t){var r;return o().createElement(e,(0,i.__assign)((0,i.__assign)({},t),((r={})[zt]="true",r)))})),Kt.get(e)}));const qt={DEFAULT_ARROW:{SvgComp:function(e){var t=e.style;return o().createElement("svg",{className:"slideshow-arrow",style:t,width:"23",height:"39",viewBox:"0 0 23 39"},o().createElement("path",{d:"M857.005,231.479L858.5,230l18.124,18-18.127,18-1.49-1.48L873.638,248Z",transform:"translate(-855 -230)"}))},width:23,height:39},ARROW_2:{SvgComp:function(e){var t=e.style;return o().createElement("svg",{className:"slideshow-arrow",style:t,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Artboard-Copy-93",transform:"translate(-28.000000, -32.000000)",fillRule:"nonzero"},o().createElement("polygon",{id:"4",points:"51.5515789 32 67.6 48.0484211 51.5515789 64.0968421 46.9663158 59.5115789 54.9880947 51.4881326 28 51.4897902 28 44.9245271 55.30728 44.9243284 46.9663158 36.5852632"}))))},width:40,height:33},ARROW_3:{SvgComp:function(e){var t=e.style;return o().createElement("svg",{className:"slideshow-arrow",style:t,width:"25px",height:"42px",viewBox:"0 0 25 42",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{id:"Artboard-Copy-97",transform:"translate(-36.000000, -27.000000)",fillRule:"nonzero"},o().createElement("path",{d:"M37.2206398,28.239114 C38.8026583,26.647265 41.3436172,26.5881667 42.9967317,28.0675785 L43.1590153,28.2206482 L59.1611748,44.1233571 C61.1319602,46.0819718 61.1995454,49.2312919 59.3527322,51.2754674 L59.1795659,51.4581932 L43.1590166,67.3793505 C41.51408,69.0140701 38.8553922,69.0057967 37.2206146,67.3608606 C35.638653,65.7689547 35.5953873,63.2276769 37.0850712,61.5838107 L37.2391492,61.4224839 L50.946,47.799 L37.2391492,34.1775161 C35.7003375,32.6482622 35.5938031,30.2229032 36.9247365,28.5696317 L37.0675472,28.4014262 L37.2206398,28.239114 Z",id:"8"}))))},width:25,height:42},ARROW_4:{SvgComp:function(e){var t=e.style;return o().createElement("svg",{className:"slideshow-arrow",style:t,width:"39px",height:"11px",viewBox:"0 0 39 11",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-29.000000, -43.000000)",fillRule:"nonzero"},o().createElement("polygon",{points:"59.79296 43 67.1767272 48.2074587 59.79296 53.3482492 59.792 49.24 29 49.2402303 29 47.3156703 59.792 47.315"}))))},width:39,height:11},ARROW_5:{SvgComp:function(e){var t=e.style;return o().createElement("svg",{className:"slideshow-arrow",style:t,width:"39px",height:"25px",viewBox:"0 0 39 25",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-29.000000, -36.000000)",fillRule:"nonzero"},o().createElement("path",{d:"M29,48.2400242 C29,47.3087892 29.6817196,46.6578788 30.6657131,46.6578788 L62.0721815,46.6578788 L53.6034603,38.6027842 C52.9919732,38.0244263 52.9745394,37.0965804 53.5626533,36.4993057 L53.6196503,36.4424086 C54.2232252,35.8695838 55.2162345,35.8487051 55.8566495,36.4049822 L66.7354947,46.6987178 C66.8997789,46.8532785 67.0362567,47.0299812 67.1410943,47.2233734 C67.6421069,47.9137524 67.5952684,48.7577348 67.0654839,49.3382112 L66.9183084,49.529704 C66.8745903,49.5829565 66.834409,49.6278886 66.7923536,49.6712745 L55.84922,60.0371144 C55.2232594,60.6516206 54.1974244,60.6696143 53.554893,60.0838114 C52.9168128,59.5020667 52.8980482,58.5443858 53.5126939,57.940867 L53.5761731,57.877497 L62.0800244,49.8549119 L30.6657131,49.8549119 C29.6912419,49.8549119 29,49.1805348 29,48.2400242 Z",id:"5"}))))},width:39,height:25},ARROW_6:{SvgComp:function(e){var t=e.style;return o().createElement("svg",{className:"slideshow-arrow",style:t,width:"26px",height:"40px",viewBox:"0 0 26 40",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-35.000000, -28.000000)",fillRule:"nonzero"},o().createElement("polygon",{points:"60.4571429 47.8 40.6571429 67.6 35 61.9428571 49.1433951 47.7994621 35 33.6571429 40.6571429 28"}))))},width:26,height:40},ARROW_7:{SvgComp:function(e){var t=e.style;return o().createElement("svg",{className:"slideshow-arrow",style:t,width:"40px",height:"33px",viewBox:"0 0 40 33",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},o().createElement("g",{stroke:"none",strokeWidth:"1",fillRule:"evenodd"},o().createElement("g",{transform:"translate(-28.000000, -32.000000)",strokeWidth:"nonzero"},o().createElement("polygon",{transform:"translate(47.800000, 48.469489) rotate(-180.000000) translate(-47.800000, -48.469489) ",points:"43.2916087 32 44.4061622 33.1660321 30.8430707 47.6817192 67.6 47.6813756 67.6 49.2576026 30.9452714 49.2580761 44.4061622 63.772946 43.2924258 64.9389782 28.8681974 49.4277178 28 48.5197421"}))))},width:40,height:33}};var Xt=function(e){var t=e.customNavArrowsRenderer,r=e.arrowsSize,i=e.svgData,n=e.containerStyleType,o=i.width/i.height>1;if(n===s.Z.arrowsContainerStyleType.BOX)return{navArrowsContainerWidth:r,navArrowsContainerHeight:r,scalePercentage:r/2.4/(o?i.width:i.height)};if(t)return{navArrowsContainerWidth:r,navArrowsContainerHeight:r};var a=r/i.width;return{scalePercentage:a,navArrowsContainerWidth:r,navArrowsContainerHeight:i.height*a}},$t=function(e){var t=Yt(e),r=t.options.showArrows,i=t.container.galleryWidth,n=t.isPrerenderMode,o=t.galleryStructure,s=t.customNavArrowsRenderer,a={options:t.options,container:t.container,customNavArrowsRenderer:s},l=o.width<=i;return!!r&&!n&&function(e){var t=e.options,r=t.arrowsVerticalPosition,i=t.textBoxHeight,n=t.arrowsSize,o=t.layoutParams,s=e.container.height,a=e.customNavArrowsRenderer,l=Qt(o.navigationArrows.type),u=Xt({customNavArrowsRenderer:a,arrowsSize:n,svgData:l,containerStyleType:o.navigationArrows.container.containerStyleType}).navArrowsContainerHeight;return{INFO_CENTER:i,IMAGE_CENTER:s-i,ITEM_CENTER:s}[r]>=u}(a)&&!l},Yt=function(e){var t=e.isPrerenderMode,r=e.galleryStructure,i=e.customNavArrowsRenderer;return{options:e.options,container:e.container,isPrerenderMode:t,galleryStructure:r,customNavArrowsRenderer:i}},Qt=function(e){void 0===e&&(e=s.Z.arrowsType.DEFAULT_ARROW);var t,r=s.Z.arrowsType,i=(r.DEFAULT_ARROW,r.ARROW_2),n=r.ARROW_3,o=r.ARROW_4,a=r.ARROW_5,l=r.ARROW_6,u=r.ARROW_7;switch(e){case i:t=qt.ARROW_2;break;case n:t=qt.ARROW_3;break;case o:t=qt.ARROW_4;break;case a:t=qt.ARROW_5;break;case l:t=qt.ARROW_6;break;case u:t=qt.ARROW_7;break;default:t=qt.DEFAULT_ARROW}return t};function Jt(e){var t,r,n=e.options,l=e.hideLeftArrow,u=e.hideRightArrow,c=e.container,d=e.customNavArrowsRenderer,h=e.next,p=e.id,g=n.isRTL,m=n.scrollDirection,f=n.imageMargin,y=n.arrowsPadding,v=n.arrowsPosition,b=n.arrowsVerticalPosition,S=n.layoutParams,P=n.titlePlacement,w=n.textBoxHeight,_=n.arrowsColor,C=n.arrowsSize,E=S.navigationArrows,I=E.container,O=I.type,x=I.backgroundColor,A=I.borderRadius,T=E.mouseCursorContainerMaxWidth,L=function(e){var t=e.customNavArrowsRenderer,r=e.arrowsColor,i=e.arrowsSize,n=e.arrowsType,l=e.containerStyleType,u=Qt(n),c=Xt({customNavArrowsRenderer:t,arrowsSize:i,svgData:u,containerStyleType:l}),d=c.navArrowsContainerWidth,h=c.navArrowsContainerHeight,p=c.scalePercentage;if(t){var g=l===s.Z.arrowsContainerStyleType.BOX?i/2.4:i;return{arrowRenderer:function(e){return o().createElement("div",{style:{width:g,height:g}},t(e))},navArrowsContainerWidth:d,navArrowsContainerHeight:h}}return{arrowRenderer:function(e){var t={transform:"scaleX("+("right"===e?1:-1)+") scale("+p+")",fill:a.Z.isMobile()&&(null==r?void 0:r.value)?r.value:""};return o().createElement(u.SvgComp,{style:t})},navArrowsContainerWidth:d,navArrowsContainerHeight:h}}({customNavArrowsRenderer:d,arrowsColor:_,arrowsSize:C,arrowsType:S.navigationArrows.type,containerStyleType:O}),M=L.arrowRenderer,R=L.navArrowsContainerWidth,N=L.navArrowsContainerHeight,k=v===s.Z.arrowsPosition.MOUSE_CURSOR,D=c.galleryHeight,Z=c.galleryWidth,H=w,B=D-H,W="50% + "+f/4+"px";s.Z.hasExternalAbovePlacement(P)?r=-1:s.Z.hasExternalBelowPlacement(P)&&(r=1);var F=(t={},t[s.Z.arrowsVerticalPosition.ITEM_CENTER]=0,t[s.Z.arrowsVerticalPosition.IMAGE_CENTER]=H*r,t[s.Z.arrowsVerticalPosition.INFO_CENTER]=-B*r,t)[b],G=function(e){var t=e.type,r=e.backgroundColor,i=e.borderRadius;return t===s.Z.arrowsContainerStyleType.BOX?{backgroundColor:r,borderRadius:i+"%"}:{}}({type:O,backgroundColor:x,borderRadius:A}),U=k?{width:Z+"px",maxWidth:T+"%",height:D+"px",padding:0,top:0,flex:1}:(0,i.__assign)({width:R+"px",height:N+"px",padding:0,top:"calc("+W+" - "+N/2+"px - \n "+F/2+"px)"},G),z=m===s.Z.scrollDirection.HORIZONTAL&&v===s.Z.arrowsPosition.OUTSIDE_GALLERY?"-"+(20+R)+"px":f/2+(y||0)+"px",j={left:k?0:z},V={right:k?0:z},K=["nav-arrows-container",O===s.Z.arrowsContainerStyleType.SHADOW?"drop-shadow":"",a.Z.isMobile()?" pro-gallery-mobile-indicator":"",k?"follow-mouse-cursor":""],q="arrow-portal-container-"+p,X=k?tr:er,$=function(e){return o().createElement(X,(0,i.__assign)({},{renderArrowSvg:M,next:h,directionIsLeft:e,arrowsBaseClasses:K,tabIndex:a.Z.getTabIndex.bind(a.Z),containerStyle:U,prevContainerStyle:j,nextContainerStyle:V,isRTL:g,hideLeftArrow:l,hideRightArrow:u,arrowBoxStyle:G,navArrowsContainerWidth:R,navArrowsContainerHeight:N,navigationArrowPortalId:q,mouseCursorContainerMaxWidth:T,id:p}))};return o().createElement(rr,{hideLeftArrow:l,hideRightArrow:u,mouseCursorEnabled:k,isRTL:g,navigationArrowPortalId:q},l?null:$(!0),u?null:$(!1))}function er(e){var t,r=e.cursor,n=e.arrowsBaseClasses,s=e.containerStyle,a=e.prevContainerStyle,l=e.nextContainerStyle,u=e.isRTL,c=e.directionIsLeft,d=e.renderArrowSvg,h=e.next,p=e.tabIndex,g=e.arrowBoxStyle,m=e.navArrowsContainerWidth,f=e.navArrowsContainerHeight,y=e.navigationArrowPortalId,v=c&&u||!c&&!u,b=function(){return h({direction:c?-1:1})},S=((t={className:n.join(" "),onClick:function(){return setTimeout(b,0)}})["aria-label"]=(v?"Next":"Previous")+" Item",t.tabIndex=p(v?"slideshowNext":"slideshowPrev"),t.key=v?"nav-arrow-next":"nav-arrow-back",t["data-hook"]=v?"nav-arrow-next":"nav-arrow-back",t.style=(0,i.__assign)((0,i.__assign)({},s),c?a:l),t);if(r){var P=r.containerRef,w=r.isMouseEnter,_=r.position;return o().createElement("button",(0,i.__assign)({ref:function(e){return P.current=e}},S),w&&Bt.createPortal(o().createElement("span",{style:(0,i.__assign)((0,i.__assign)({top:_.y-f/2,left:_.x-m/2},g),{width:m,height:f})},d(c?"left":"right")),window.document.getElementById(y)))}return o().createElement("button",(0,i.__assign)({},S),d(c?"left":"right"))}function tr(e){var t=e.directionIsLeft,r=e.next,i=e.mouseCursorContainerMaxWidth,n=e.hideLeftArrow,s=e.hideRightArrow,a=e.renderArrowSvg,l=n||s;return o().createElement(Vt,{id:e.id,mouseCursorContainerMaxWidth:i,onNavigate:function(){return r({direction:t?-1:1})},direction:t?"left":"right",isTheOnlyArrow:l},(function(e,r){return o().createElement("div",{style:{position:"absolute",top:r,left:e,transition:"all 0.2s ease",pointerEvents:"none"}},a(t?"left":"right"))}))}function rr(e){var t=e.hideRightArrow,r=e.hideLeftArrow,n=e.mouseCursorEnabled,s=e.isRTL,a=e.children,l=e.navigationArrowPortalId;if(n){var u={justifyContent:r?"flex-end":t?"flex-start":"space-between",flexDirection:s?"row-reverse":"row"};return o().createElement("div",{className:"mouse-cursor",style:(0,i.__assign)({},u)},o().createElement("div",{id:l,className:"arrow-portal-container"}),a)}return o().Fragment?o().createElement(o().Fragment,null,a):o().createElement("div",null,a)}function ir(e){if([33,37,38].includes(e))return-1;if([32,34,39,40].includes(e))return 1;throw new Error("no direction is defined for charCode: "+e)}var nr=function(e){function t(t){var r=e.call(this,t)||this;return r.autoScrollToNextItem=function(){if(!(0,We.wh)()&&(r.props.isInViewport||(0,We.g4)())){var e=r.props.options,t=e.isRTL?-1:1;e.autoSlideshowType===s.Z.autoSlideshowTypes.CONTINUOUS?r._next({direction:t,isAutoTrigger:!0,isContinuousScrolling:!0}):e.autoSlideshowType===s.Z.autoSlideshowTypes.INTERVAL&&r._next({direction:t,isAutoTrigger:!0,scrollDuration:800})}},r.getCustomNavigationPanel=function(){var e;return"function"==typeof(null===(e=r.props.customComponents)||void 0===e?void 0:e.EXPERIMENTAL_customNavigationPanelRenderer)&&r.props.customComponents.EXPERIMENTAL_customNavigationPanelRenderer},r.createOrGetCustomNavigationPanelAPI=function(){var e=r.props.options.isRTL;return r.navigationPanelAPI||(r.navigationPanelAPI={next:function(){return r.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?-1:1})},back:function(){return r.next({scrollDuration:400,isKeyboardNavigation:!1,isAutoTrigger:!1,avoidIndividualNavigation:!1,isContinuousScrolling:!1,direction:e?1:-1})},isAbleToNavigateNext:function(){return e?!r.state.hideLeftArrow:!r.state.hideRightArrow},isAbleToNavigateBack:function(){return e?!r.state.hideRightArrow:!r.state.hideLeftArrow},getActiveItemIndex:function(){return r.state.activeIndex},triggerItemAction:function(e,t){var n=(void 0===t?{}:t).itemIndex,o=void 0===n?r.state.activeIndex:n,a=r.createGalleryConfig(),l=r.props.galleryStructure.galleryItems[o%r.props.totalItemsCount],u=null==l?void 0:l.renderProps((0,i.__assign)((0,i.__assign)({},a),{visible:!0}));r.props.actions.eventsListener(s.Z.events.ITEM_ACTION_TRIGGERED,u,e)},toIndex:function(t){return r.scrollToIndex({itemIdx:t,scrollDuration:400,isRTL:e})},assignIndexChangeCallback:function(e){r.navigationPanelCallbackOnIndexChange=e}})},r.navigationPanelCallbackOnIndexChange=function(){},r.scrollToThumbnail=r.scrollToThumbnail.bind(r),r.clearAutoSlideshowInterval=r.clearAutoSlideshowInterval.bind(r),r.onFocus=r.onFocus.bind(r),r.onBlur=r.onBlur.bind(r),r.onAutoSlideShowButtonClick=r.onAutoSlideShowButtonClick.bind(r),r.startAutoSlideshowIfNeeded=r.startAutoSlideshowIfNeeded.bind(r),r.updateAutoSlideShowState=r.updateAutoSlideShowState.bind(r),r.canStartAutoSlideshow=r.canStartAutoSlideshow.bind(r),r.handleSlideshowKeyPress=r.handleSlideshowKeyPress.bind(r),r.onAutoSlideshowAutoPlayKeyPress=r.onAutoSlideshowAutoPlayKeyPress.bind(r),r.setCurrentItemByScroll=r.setCurrentItemByScroll.bind(r),r._setCurrentItemByScroll=a.Z.throttle(r.setCurrentItemByScroll,600).bind(r),r._next=a.Z.throttle(r.nextWithEffects.bind(r),t.isScrollLessGallery?600:400).bind(r),r._next=a.Z.throttle(r.next.bind(r),400).bind(r),r.state={activeIndex:t.activeIndex||0,isInView:!0,pauseAutoSlideshowClicked:!1,hideLeftArrow:!t.options.isRTL,hideRightArrow:t.options.isRTL,shouldBlockAutoSlideshow:!1,isInFocus:!1},r.lastCurrentItem=void 0,r.shouldCreateSlideShowPlayButton=!1,r.skipFromSlide=Math.round(1.5*r.props.totalItemsCount),r}return(0,i.__extends)(t,e),t.prototype.isFirstItem=function(){return 0===this.state.activeIndex},t.prototype.isScrollStart=function(){return!(this.props.options.slideAnimation!==s.Z.slideAnimations.SCROLL||!this.scrollElement)&&this.scrollPosition()<=1},t.prototype.isScrollEnd=function(){var e=this.props.options,t=e.slideshowLoop,r=e.slideAnimation;return!t&&r!==s.Z.slideAnimations.FADE&&r!==s.Z.slideAnimations.DECK&&(this.isAllItemsLoaded()&&this.scrollPositionAtTheAndOfTheGallery()>=Math.floor(this.getScrollElementWidth()))},t.prototype.isAllItemsLoaded=function(){var e=this.props,t=e.totalItemsCount,r=e.getVisibleItems,i=e.galleryStructure,n=e.container,o=e.isPrerenderMode;return r(i.galleryItems,n,o).length>=t},t.prototype.getScrollElementWidth=function(){var e=this.props.galleryStructure,t=this.props.options.imageMargin;return e.width-t/2},t.prototype.isFirstItemFullyVisible=function(){return!this.props.options.slideshowLoop&&this.isScrollStart()},t.prototype.isLastItemFullyVisible=function(){return!this.props.options.slideshowLoop&&this.isScrollEnd()},t.prototype.isLastItem=function(){return!this.props.options.slideshowLoop&&this.state.activeIndex>=this.props.totalItemsCount-1},t.prototype.shouldBlockNext=function(e){var t=e.scrollingUpTheGallery;return t&&this.isLastItem()||!t&&this.isFirstItem()},t.prototype.shouldNotAllowScroll=function(e){var t=e.scrollingUpTheGallery;return t&&this.isLastItemFullyVisible()||!t&&this.isFirstItemFullyVisible()},t.prototype.nextWithEffects=function(e){return(0,i.__awaiter)(this,void 0,void 0,(function(){var t,r,n=this;return(0,i.__generator)(this,(function(o){switch(o.label){case 0:return[4,this.next(e)];case 1:return t=o.sent(),1===this.props.options.groupSize&&this.props.isScrollLessGallery&&t>=this.skipFromSlide&&(r=this.skipFromSlide-this.props.totalItemsCount,s=function(){return n.onScrollToItemOrGroup(r,!1)},a=function(e){console.log("toggleScrollLessAnimation: ",e),[".gallery-item-wrapper",".gallery-item-common-info-outer"].forEach((function(t){e?(0,i.__spreadArrays)(document.querySelectorAll(t)).forEach((function(e){var t;null===(t=e.classList)||void 0===t||t.add("disabled-transition")})):(0,i.__spreadArrays)(document.querySelectorAll(t)).forEach((function(e){var t;e.offsetHeight,null===(t=e.classList)||void 0===t||t.remove("disabled-transition")}))}))},setTimeout((function(){s&&s(),a(!0),a(!1)}),600)),[2]}var s,a}))}))},t.prototype.next=function(e){var t,r=e.direction,n=e.isAutoTrigger,o=e.scrollDuration,a=e.isKeyboardNavigation,l=void 0!==a&&a,u=e.isContinuousScrolling,c=void 0!==u&&u;return(0,i.__awaiter)(this,void 0,void 0,(function(){var e,a,u,d,h;return(0,i.__generator)(this,(function(i){return e=this.props.options.isRTL?r<=-1:r>=1,this.shouldBlockNext({scrollingUpTheGallery:e})?(this.clearAutoSlideshowInterval(),[2]):(r*=this.props.options.isRTL?-1:1,a=document.activeElement,u=a.className&&a.className.includes("gallery-item-container"),d=!l||!((null===(t=this.props.settings)||void 0===t?void 0:t.isAccessible)&&u),h=!1,this.props.options.slideAnimation!==s.Z.slideAnimations.SCROLL&&(o=0,h=!0),this.removeArrowsIfNeeded(),d&&this.props.options.groupSize>1?[2,this.nextGroup({direction:r,scrollDuration:o,isContinuousScrolling:c,scrollingUpTheGallery:e})]:(d&&s.Z.isLayout("GRID")(this.props.options)&&this.props.options.numberOfImagesPerCol&&(r*=this.props.options.numberOfImagesPerCol),[2,this.nextItem({direction:r,isAutoTrigger:n,scrollDuration:o,avoidIndividualNavigation:d,ignoreScrollPosition:h,isContinuousScrolling:c,scrollingUpTheGallery:e})]))}))}))},t.prototype.getNextItemOrGroupToScrollTo=function(e,t,r,i,n){var o;if(this.isSliding=!0,"nextGroup"!==e&&("nextItem"!==e||r||!i||this.props.options.groupSize>1))"nextItem"===e&&(o=r||!n?this.state.activeIndex:this.setCurrentItemByScroll(),o+=t,this.props.options.slideshowLoop||(o=Math.min(this.props.galleryStructure.items.length-1,o),o=Math.max(0,o)));else{var s="nextGroup"===e?"groups":"galleryItems";o=this.getCenteredItemOrGroupIdxByScroll(s)+t}return this.isAutoScrolling=!0,o},t.prototype.nextItem=function(e){var t=e.direction,r=e.isAutoTrigger,n=e.scrollDuration,o=e.avoidIndividualNavigation,s=e.ignoreScrollPosition,a=e.isContinuousScrolling,l=e.scrollingUpTheGallery;return(0,i.__awaiter)(this,void 0,void 0,(function(){var e,u,c,d;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(this.isSliding)return[2];e=this.getNextItemOrGroupToScrollTo("nextItem",t,s,o,r),i.label=1;case 1:return i.trys.push([1,5,,6]),u=s?0:e,[4,this.scrollToItemOrGroup(this.props.actions.scrollToItem,u,a,n,l)];case 2:return i.sent(),1!==this.props.options.groupSize||this.props.isScrollLessGallery?[3,4]:(c=this.skipFromSlide-this.props.totalItemsCount,e>=this.skipFromSlide?(e=c,[4,this.props.actions.scrollToItem(e)]):[3,4]);case 3:i.sent(),i.label=4;case 4:return this.onScrollToItemOrGroup(e,a),s&&(this.props.getMoreItemsIfNeeded(this.props.galleryStructure.galleryItems[e].offset.left),this.props.setGotFirstScrollIfNeeded()),[2,e];case 5:return d=i.sent(),this.onThrowScrollError("Cannot proceed to the next Item",d),[3,6];case 6:return[2]}}))}))},t.prototype.nextGroup=function(e){var t=e.direction,r=e.scrollDuration,n=e.isContinuousScrolling,o=void 0!==n&&n,s=e.scrollingUpTheGallery;return(0,i.__awaiter)(this,void 0,void 0,(function(){var e,n,a;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(this.isSliding)return[2];e=this.getNextItemOrGroupToScrollTo("nextGroup",t),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.scrollToItemOrGroup(this.props.actions.scrollToGroup,e,o,r,s)];case 2:return i.sent(),n=this.getCenteredItemOrGroupIdxByScroll("galleryItems")+t,this.onScrollToItemOrGroup(n,o),[3,4];case 3:return a=i.sent(),this.onThrowScrollError("Cannot proceed to the next Group",a),[3,4];case 4:return[2]}}))}))},t.prototype.scrollToItemOrGroup=function(e,t,r,n,o){return(0,i.__awaiter)(this,void 0,void 0,(function(){var s,a,l,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return s=!this.shouldNotAllowScroll({scrollingUpTheGallery:o}),a=this.getScrollParameters(n),l=a.scrollMarginCorrection,u=a._scrollDuration,s?[4,e(t,!1,!0,u,l,r)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}}))}))},t.prototype.onThrowScrollError=function(e,t){console.error(e,t),this.clearAutoSlideshowInterval()},t.prototype.onScrollToItemOrGroup=function(e,t){var r=this;a.Z.setStateAndLog(this,"Next Item",{activeIndex:e},(function(){r.onCurrentItemChanged(),r.isSliding=!1,t&&r.startAutoSlideshowIfNeeded(r.props.options)}))},t.prototype.getScrollParameters=function(e){return{scrollMarginCorrection:this.getStyles().margin||0,_scrollDuration:e||this.props.options.scrollDuration||400}},t.prototype.onCurrentItemChanged=function(){if(this.lastCurrentItem!==this.state.activeIndex){this.lastCurrentItem=this.state.activeIndex;var e=this.props.galleryStructure.galleryItems[this.state.activeIndex],t=this.props.items[this.state.activeIndex];t&&(t.idx=this.state.activeIndex,t.resizedImageSrc=e.createUrl(s.Z.urlSizes.RESIZED,s.Z.urlTypes.HIGH_RES),this.props.actions.eventsListener(s.Z.events.CURRENT_ITEM_CHANGED,t)),this.navigationPanelCallbackOnIndexChange(this.state.activeIndex)}this.removeArrowsIfNeeded()},t.prototype.clearAutoSlideshowInterval=function(){clearInterval(this.autoSlideshowInterval)},t.prototype.canStartAutoSlideshow=function(e){return e.isAutoSlideshow&&!this.state.shouldBlockAutoSlideshow},t.prototype.startAutoSlideshowIfNeeded=function(e){this.clearAutoSlideshowInterval(),this.canStartAutoSlideshow(e)&&(e.autoSlideshowType===s.Z.autoSlideshowTypes.CONTINUOUS&&e.autoSlideshowContinuousSpeed>0?this.autoScrollToNextItem():e.autoSlideshowType===s.Z.autoSlideshowTypes.INTERVAL&&e.autoSlideshowInterval>0&&(this.autoSlideshowInterval=setInterval(this.autoScrollToNextItem,1e3*e.autoSlideshowInterval)))},t.prototype.scrollToThumbnail=function(e,t){this.props.actions.eventsListener(s.Z.events.THUMBNAIL_CLICKED,this.props),this.scrollToIndex({itemIdx:e,scrollDuration:t,isRTL:this.props.options.isRTL})},t.prototype.scrollToIndex=function(e){var t=e.itemIdx,r=e.scrollDuration,i=e.isRTL;this.props.setGotFirstScrollIfNeeded();var n=i?this.state.activeIndex-t:t-this.state.activeIndex;return this.next({direction:n,isAutoTrigger:!1,scrollDuration:r,isKeyboardNavigation:!1})},t.prototype.handleSlideshowKeyPress=function(e){e.stopPropagation();var t=e.charCode||e.keyCode;if(!1===[32,33,34,37,38,39,40,27].includes(t))return!0;e.preventDefault();var r=Z.Z.document.activeElement.getAttribute("data-idx"),i=r&&this.props.totalItemsCount-1===Number(r)&&Number(r)===this.state.activeIndex;if(40===t&&i||27===t){var n={27:this.props.galleryContainerRef,40:this.props.outOfViewComponent}[t];a.Z.focusGalleryElement(n)}else this._next({direction:ir(t),isKeyboardNavigation:!0});return!1},t.prototype.getCenteredItemOrGroupIdxByScroll=function(e){var t,r=this.props.galleryStructure[e],i=this.scrollPositionAtTheMiddleOfTheGallery();if(0===i)t=0;else for(var n=void 0,o=0;n=r[o];o++){if(("galleryItems"===e?n.offset.left:n.left)>i){t=o-1;break}}return t>=0||(t=r.length-1),t},t.prototype.setCurrentItemByScroll=function(){var e=this;if(a.Z.isVerbose()&&console.log("Setting current Idx by scroll",this.isAutoScrolling),this.isAutoScrolling)this.isAutoScrolling=!1;else{if(!("true"===(this.scrollElement&&this.scrollElement.getAttribute("data-scrolling")))){this.startAutoSlideshowIfNeeded(this.props.options);var t=this.getCenteredItemOrGroupIdxByScroll("galleryItems");return a.Z.isUndefined(t)||a.Z.setStateAndLog(this,"Set Current Item",{activeIndex:t},(function(){e.onCurrentItemChanged()})),t}this.clearAutoSlideshowInterval()}},t.prototype.createDebugMsg=function(){return o().createElement(Ue,(0,i.__assign)({},this.props.debug))},t.prototype.createNavArrows=function(){var e=this.props,t=e.container,r=e.options,i=e.customComponents,n=e.id,s=this.state,a=s.hideLeftArrow,l=s.hideRightArrow;return o().createElement(Jt,{container:t,options:r,customNavArrowsRenderer:i.customNavArrowsRenderer,hideLeftArrow:a,hideRightArrow:l,next:this._next,id:n})},t.prototype.getBufferedItems=function(e,t){var r,i=this.state,n=this.props,o=n.options,a=n.virtualizationSettings,l=n.getVisibleItems,u=n.isPrerenderMode,c=i.activeIndex;return function(e){var t=e.groups,r=e.options,i=e.virtualizationSettings,n=e.galleryWidth,o=e.galleryHeight,a=e.activeIndex,l=i||{},u=l.enabled,c=void 0!==u&&u,d=l.forwardItemMargin,h=void 0===d?3:d,p=l.backwardItemMargin,g=void 0===p?3:p,m=l.forwardItemScrollMargin,f=void 0===m?10:m,y=l.backwardItemScrollMargin,v=void 0===y?10:y,b=r.scrollDirection===s.Z.scrollDirection.HORIZONTAL,S=!b||r.slideAnimation===s.Z.slideAnimations.SCROLL;if(!c)return t.map((function(e){return{group:e,shouldRender:!0}}));for(var P=b?n:o,w=b?"width":"height",_=S?f:h,C=S?v:g,E=t.findIndex((function(e){var t,r,i=e.items,n=i[0],o=i[i.length-1],s=null!==(t=n.idx)&&void 0!==t?t:n.fullscreenIdx,l=null!==(r=o.idx)&&void 0!==r?r:o.fullscreenIdx;return s<=a&&l>=a})),I=t[E],O=I[w]/P,x=O,A=O,T=[I],L=1;x<_||Ae.props.container.width},r.renderProps(s)),{ariaHidden:r.idx>e.skipFromSlide,shouldRenderEmpty:!n,container:e.props.container,key:r.idx}))}))}(t)))}))},t.prototype.getDimensions=function(){var e=this.props.container.galleryHeight;return this.props.isPrerenderMode?{width:"100%",height:e}:{height:e,width:this.props.container.galleryWidth}},t.prototype.createGallery=function(){var e,t=this.props.options.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&this.props.options.arrowsPosition===s.Z.arrowsPosition.OUTSIDE_GALLERY?{overflow:"visible",left:this.props.options.arrowsSize+40+this.props.options.imageMargin/2}:{},r=this.getDimensions(),n=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},r),t),{display:"flex",justifyContent:"space-between"});return o().createElement("div",{id:this.props.galleryContainerId,className:"pro-gallery inline-styles one-row hide-scrollbars "+(this.props.options.enableScroll?" slider ":"")+((null===(e=this.props.settings)||void 0===e?void 0:e.isAccessible)?" accessible ":"")+(this.props.options.isRTL?" rtl ":" ltr "),style:n},this.createDebugMsg(),this.createLayout(),this.createAutoSlideShowPlayButton(),this.createSlideShowNumbers(),$t({options:this.props.options,container:this.props.container,isPrerenderMode:this.props.isPrerenderMode,galleryStructure:this.props.galleryStructure,customNavArrowsRenderer:this.props.customComponents.customNavArrowsRenderer})&&this.createNavArrows())},t.prototype.onAutoSlideShowButtonClick=function(){var e=this;this.setState({pauseAutoSlideshowClicked:!this.state.pauseAutoSlideshowClicked},(function(){e.updateAutoSlideShowState(e.props)}))},t.prototype.isFullWidthGallery=function(){return this.props.container.galleryWidth>=a.Z.getWindowWidth()-10},t.prototype.onAutoSlideshowAutoPlayKeyPress=function(e){switch(e.keyCode||e.charCode){case 32:case 13:return e.preventDefault(),e.stopPropagation(),this.onAutoSlideShowButtonClick(),!1;default:return!0}},t.prototype.calcSlideshowCounterWidth=function(){var e=this.props.totalItemsCount;return e<10?26:e<100?43:e<1e3?60:76},t.prototype.createAutoSlideShowPlayButton=function(){var e=this;if(!this.shouldCreateSlideShowPlayButton)return!1;var t=this.props.options,r=t.galleryTextAlign,n=t.textBoxHeight,s=this.props.options.imageMargin/2+(this.isFullWidthGallery()?50:0),a="right"===r?{left:s/2+"px"}:{right:s/2+(this.props.options.allowSlideshowCounter?this.calcSlideshowCounterWidth():0)+"px"};return o().createElement("button",{className:"auto-slideshow-button",onClick:function(){e.onAutoSlideShowButtonClick()},onKeyDown:this.onAutoSlideshowAutoPlayKeyPress,"data-hook":"auto-slideshow-button",title:"slideshow auto play","aria-pressed":this.state.pauseAutoSlideshowClicked,tabIndex:0,style:(0,i.__assign)({top:"calc(100% - "+n+"px + 3px)"},a)},this.state.pauseAutoSlideshowClicked?o().createElement(xt,{width:"10px",height:"100%"}):o().createElement(Tt,{width:"10px",height:"100%"}))},t.prototype.createSlideShowNumbers=function(){if(!this.props.options.allowSlideshowCounter)return!1;var e=this.props,t=e.totalItemsCount,r=e.options,n=r.galleryTextAlign,s=r.textBoxHeight,a=this.props.options.imageMargin/2+(this.isFullWidthGallery()?50:0),l=this.shouldCreateSlideShowPlayButton?a/2+25:a/2,u="right"===n?{left:l+"px"}:{right:a/2+"px"};return o().createElement("div",{className:"auto-slideshow-counter","data-hook":"auto-slideshow-counter",style:(0,i.__assign)({top:"calc(100% - "+s+"px + 3px)"},u)},o().createElement("div",null,this.state.activeIndex%t+1+"/"+t))},t.prototype.getNavigationPanelArray=function(){if(!this.props.options.hasThumbnails)return[!1,!1];var e,t=this.getCustomNavigationPanel();if(t){var r=this.props.container,n=r.galleryHeight,a=r.galleryWidth,l=r.height,u=r.width,c=this.props.options.galleryThumbnailsAlignment,d=this.props.options.layoutParams.thumbnails.position,h=Dt({galleryHeight:n,galleryWidth:a,height:l,width:u,galleryThumbnailsAlignment:c,navigationPanelPosition:d});e=o().createElement("div",{className:"custom-navigation-panel",style:h},t((0,i.__assign)((0,i.__assign)({},this.props),{activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail,navigationPanelAPI:this.createOrGetCustomNavigationPanelAPI()})))}else e=o().createElement(Ht,(0,i.__assign)({},this.props,{activeIndex:this.state.activeIndex,navigationToIdxCB:this.scrollToThumbnail}));var p=this.props.options.layoutParams.thumbnails.position,g=this.props.options.galleryThumbnailsAlignment,m=[];if(p===s.Z.thumbnailsPosition.ON_GALLERY)return m[0]=!1,m[1]=e,m;switch(g){case"top":case"left":m[0]=e,m[1]=!1;break;case"right":case"bottom":m[0]=!1,m[1]=e}return m},t.prototype.getClassNames=function(){var e="pro-gallery-parent-container";return s.Z.isLayout("SLIDER")(this.props.options)?e+=" gallery-slider":this.props.options.hasThumbnails?e+=" gallery-thumbnails":s.Z.isLayout("COLUMN")(this.props.options)&&(e+=" gallery-columns"),e},t.prototype.getStyles=function(){return{margin:-1*(this.props.options.imageMargin/2-this.props.options.layoutParams.gallerySpacing),width:this.props.container.width,height:this.props.container.height}},t.prototype.getScrollPosition=function(){return this.scrollElement?this.scrollPosition():0},t.prototype.scrollPositionAtTheMiddleOfTheGallery=function(){return this.getScrollPosition()+this.props.container.galleryWidth/2},t.prototype.scrollPositionAtTheAndOfTheGallery=function(){return this.getScrollPosition()+this.props.container.galleryWidth},t.prototype.scrollPosition=function(){return(this.props.options.isRTL?-1:1)*this.scrollElement.scrollLeft},t.prototype.updateAutoSlideShowState=function(e){var t=this;void 0===e&&(e=this.props);var r=e.isGalleryInHover,i=e.options,n=e.settings,o=this.state,s=o.pauseAutoSlideshowClicked,a=o.shouldBlockAutoSlideshow,l=o.isInView,u=o.isInFocus,c=r&&i.pauseAutoSlideshowOnHover,d=u&&(null==n?void 0:n.isAccessible),h=!l||s||d||c;a!==h&&this.setState({shouldBlockAutoSlideshow:h},(function(){t.startAutoSlideshowIfNeeded(i)}))},t.prototype.onFocus=function(){var e=this;this.setState({isInFocus:!0},(function(){e.updateAutoSlideShowState(e.props)}))},t.prototype.onBlur=function(){var e=this;this.setState({isInFocus:!1},(function(){e.updateAutoSlideShowState(e.props)}))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t,r,i=this,n=e.isInViewport&&(null===(t=e.isInDisplay)||void 0===t||t);n!==(this.props.isInViewport&&(null===(r=this.props.isInDisplay)||void 0===r||r))?this.setState({isInView:n},(function(){i.updateAutoSlideShowState(e)})):this.props.isGalleryInHover!==e.isGalleryInHover?this.updateAutoSlideShowState(e):this.props.container.scrollBase!=e.container.scrollBase&&this.forceUpdate((function(){i.startAutoSlideshowIfNeeded(e.options)})),this.props.activeIndex!==e.activeIndex&&a.Z.setStateAndLog(this,"Next Item",{activeIndex:e.activeIndex},(function(){i.onCurrentItemChanged()})),this.props.totalItemsCount!==e.totalItemsCount&&this.removeArrowsIfNeeded(),((0,We.wh)()||(0,We.g4)())&&(this.props.options.isAutoSlideshow===e.options.isAutoSlideshow&&this.props.options.autoSlideshowInterval===e.options.autoSlideshowInterval||this.startAutoSlideshowIfNeeded(e.options)),this.shouldCreateSlideShowPlayButton=e.options.isAutoSlideshow&&e.options.playButtonForAutoSlideShow},t.prototype.removeArrowsIfNeeded=function(){var e=this.props.options.isRTL,t=this.state,r=t.hideLeftArrow,i=t.hideRightArrow,n=this.isScrollStart(),o=this.isFirstItem(),s=this.isScrollEnd(),a=this.isLastItem(),l=n||o,u=s||a,c=!e&&l||e&&u,d=e&&l||!e&&u;(!!c!=!!r||!!d!=!!i)&&this.setState({hideLeftArrow:!!c,hideRightArrow:!!d})},t.prototype.componentDidMount=function(){this.scrollElement=Z.Z.document.querySelector("#pro-gallery-"+this.props.id+" #gallery-horizontal-scroll-"+this.props.id),this.scrollElement&&this.scrollElement.addEventListener("scroll",this._setCurrentItemByScroll),this.state.activeIndex>0?(this.props.actions.scrollToItem(this.state.activeIndex),this.onCurrentItemChanged()):this.setCurrentItemByScroll(),this.startAutoSlideshowIfNeeded(this.props.options)},t.prototype.componentWillUnmount=function(){this.scrollElement&&this.scrollElement.removeEventListener("scroll",this._setCurrentItemByScroll)},t.prototype.render=function(){a.Z.isVerbose()&&(console.count("galleryView render"),console.count("Rendering Gallery count"),console.time("Rendering Gallery took "));var e=this.createGallery(),t=this.getNavigationPanelArray();return a.Z.isVerbose()&&console.timeEnd("Rendering Gallery took "),o().createElement("div",(0,i.__assign)({className:this.getClassNames(),style:this.getStyles(),onKeyDown:this.handleSlideshowKeyPress},a.Z.getAriaAttributes({proGalleryRole:this.props.proGalleryRole,proGalleryRegionLabel:this.props.proGalleryRegionLabel}),{onFocus:this.onFocus,onBlur:this.onBlur}),t[0],e,t[1])},t}(o().Component);const or=nr;var sr=r(3640);const ar=function(e){function t(t){var r=e.call(this)||this;return r.state={scrollTop:0,scrollLeft:0},r.debouncedOnScroll=a.Z.debounce(t.onScroll,50),r}return(0,i.__extends)(t,e),t.prototype.removeScrollListener=function(){if(this.scrollEventListenerSet){var e=this.props.scrollingElement;try{e.vertical().removeEventListener("scroll",this.onVerticalScroll)}catch(e){}try{this.props.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&e.horizontal().removeEventListener("scroll",this.onHorizontalScroll)}catch(e){}this.scrollEventListenerSet=!1}},t.prototype.initScrollListener=function(){var e,t,r=this;this.scrollEventListenerSet&&this.removeScrollListener(),this.scrollEventListenerSet=!0;var i=this.props.scrollingElement;if(this.onHorizontalScrollTransition=function(e){var t=e.detail,i=Math.round(t);i>=0&&r.props.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&r.setState({scrollLeft:r.state.scrollLeft+i})},this.onHorizontalScroll=function(e){r.props.setGotFirstScrollIfNeeded();var t=e.currentTarget||e.target||e,i=t&&(t.scrollX||t.scrollLeft||t.x);r.props.isRTL&&(i=Math.abs(i)),i>=0&&r.props.scrollDirection===s.Z.scrollDirection.HORIZONTAL&&(r.setState({scrollTop:i,scrollLeft:i}),r.props.getMoreItemsIfNeeded(i),r.debouncedOnScroll({left:i}))},this.props.scrollDirection===s.Z.scrollDirection.HORIZONTAL)try{null===(e=null==i?void 0:i.horizontal())||void 0===e||e.addEventListener("scroll",this.onHorizontalScroll),null===(t=null==i?void 0:i.horizontal())||void 0===t||t.addEventListener("scrollTransition",this.onHorizontalScrollTransition)}catch(e){console.error(e)}this.onVerticalScroll=function(e){r.props.setGotFirstScrollIfNeeded();var t=e.currentTarget||e.target||e,i=t&&(t.scrollY||t.scrollTop||t.y);i>=0&&(r.props.scrollDirection===s.Z.scrollDirection.VERTICAL&&(r.setState({scrollTop:i}),r.props.getMoreItemsIfNeeded(i)),r.debouncedOnScroll({top:i}))};try{i.vertical().addEventListener("scroll",this.onVerticalScroll)}catch(e){console.error(e)}},t.prototype.componentWillUnmount=function(){this.removeScrollListener()},t.prototype.componentDidMount=function(){this.initScrollListener()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){for(var t=!1,r=0,i=["id","scrollDirection","isRTL","totalWidth","scrollBase"];r0?this.props.scrollBase:0,t=this.state.scrollTop-e,r=this.props.id;return o().createElement("div",{key:"css-scroll-indicator","data-hook":"css-scroll-indicator","data-scroll-base":e,"data-scroll-top":this.state.scrollTop,className:tt.calcScrollClasses(r,t),style:{display:"none"}})},t}(o().Component);var lr=function(e,t,r){void 0===e&&(e="");var i=r.isRTL,n="";return t.forEach((function(t){var r=function(e){var t=e.galleryId,r=e.item;return"#pro-gallery-"+t+" #"+tt.getSellectorDomId(r)}({galleryId:e,item:t}),o=function(e){return{top:e.offset.top,left:e.offset.left,width:e.width+e.infoWidth,height:e.height+e.infoHeight,innerHeight:e.height}}(t),s="top:"+o.top+"px;",a=i?"right:"+o.left+"px;left:auto;":"left:"+o.left+"px;",l="width:"+o.width+"px;",u="height:"+o.height+"px;";n+=r+" {"+s+a+l+u+"}"})),n};const ur=function(){function e(e){this.left=0,this.top=0,this.setPlayingIdxState=e,this.handleEvent=function(){},this.onScroll=this.onScroll.bind(this),this.trigger={SCROLL:this.onScroll,INIT_SCROLL:function(){}},this.stop=function(){},this.initializePlayState=function(){}}return e.prototype.onScroll=function(e){var t=e.top,r=e.left;this.top=t||this.top,this.left=r||this.left},e.prototype.initVideoScrollHelperIfNeeded=function(e,t){var i=this;if(t.some((function(e){return e.metaData&&"video"===e.metaData.type||e.metadata&&"video"===e.metadata.type}))){var n={setPlayingVideos:(0,We.wh)()?function(){}:this.setPlayingIdxState};r.e(731).then(r.bind(r,29122)).then((function(t){Object.assign(i,new t.default(n)),i.updateGalleryStructure(e),i.onScroll({top:i.top,left:i.left})})).catch((function(e){console.error("Failed to load videoScrollHelper. error: "+e)}))}},e.prototype.updateGalleryStructure=function(e,t,r){t&&this.initVideoScrollHelperIfNeeded(e,r)},e}();const cr=function(e,t,r){var i,n=r[e],o=function(e,t,i){var n,o,s,a=null,l={};return r.forEach((function(r){n=r.offset.top+r.height/2,o=r.offset.left+r.width/2,s=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)),(null===a||s>0&&st}));break;default:i=o(n.offset.right,n.offset.top+n.height/2,(function(e,t,r){return r>e}))}return i.idx>=0?i.idx:(console.warn("Could not find offset for itemIdx",e,t),e)};var dr=r(65286),hr=function(e){function t(t){var r=e.call(this,t)||this;r.updateVisibility=function(){var e=(0,dr.I)({container:r.props.container,scrollTop:r.state.scrollPosition.top});r.state.isInViewport!==e&&r.setState({isInViewport:e})},r.setVisibilityIfNeeded=function(e,t){var i=r.props.container,n=r.state.scrollPosition;i.scrollBase===e.container.scrollBase&&n.top===t.scrollPosition.top||r.updateVisibility()},r.findNeighborItem=function(e,t){return cr(e,t,r.state.structure.items)},a.Z.isVerbose()&&console.count("[OOISSR] galleryContainer constructor",Z.Z.isMock),r.getMoreItemsIfNeeded=r.getMoreItemsIfNeeded.bind(r),r.setGotFirstScrollIfNeeded=r.setGotFirstScrollIfNeeded.bind(r),r.toggleLoadMoreItems=r.toggleLoadMoreItems.bind(r),r.scrollToItem=r.scrollToItem.bind(r),r.scrollToGroup=r.scrollToGroup.bind(r),r._scrollingElement=r.getScrollingElement(),r.eventsListener=r.eventsListener.bind(r),r.onGalleryScroll=r.onGalleryScroll.bind(r),r.setPlayingIdxState=r.setPlayingIdxState.bind(r),r.getVisibleItems=r.getVisibleItems.bind(r),r.findNeighborItem=r.findNeighborItem.bind(r),r.setCurrentSlideshowViewIdx=r.setCurrentSlideshowViewIdx.bind(r),r.getIsScrollLessGallery=r.getIsScrollLessGallery.bind(r),r.onMouseEnter=r.onMouseEnter.bind(r),r.onMouseLeave=r.onMouseLeave.bind(r),r.videoScrollHelper=new ur(r.setPlayingIdxState);var n={scrollPosition:{top:0,left:0},showMoreClickedAtLeastOnce:!1,initialGalleryHeight:void 0,needToHandleShowMoreClick:!1,gotFirstScrollEvent:t.activeIndex>=0,playingVideoIdx:-1,viewComponent:null,firstUserInteractionExecuted:!1,isInHover:!1,isInViewport:!0};r.state=n,r.layoutCss=[],r.initialGalleryState={};try{var o=r.propsToState(t);Object.keys(o).length>0&&(r.initialGalleryState=o)}catch(e){console.warn("Cannot create initial state from props",e)}return r.state=(0,i.__assign)((0,i.__assign)({},n),r.initialGalleryState),r}return(0,i.__extends)(t,e),t.prototype.initializeScrollPosition=function(){if(this.props.activeIndex>0){this.scrollToItem(this.props.activeIndex,!1,!0,0);var e=this.galleryStructure.items[this.props.activeIndex];this.onGalleryScroll(e.offset)}},t.prototype.isScrollingUnavailable=function(e,t){return this.isVerticalGallery()?e<=t+300:this.state.structure.widthr){var e=document.body,t=document.documentElement,i=Z.Z.innerHeight,o=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);n.getMoreItemsIfScrollIsDisabled(o,i)}}))),[2]}))}))},t.prototype.componentDidMount=function(){Z.h.stopUsingMock();var e=document.body,t=document.documentElement,r=Z.Z.innerHeight,i=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight);this.initializeScrollPosition(),this.getMoreItemsIfScrollIsDisabled(i,r),this.handleNewGalleryStructure(),this.eventsListener(s.Z.events.APP_LOADED,{}),this.videoScrollHelper.initializePlayState();try{"function"==typeof Z.Z.CustomEvent?this.currentHoverChangeEvent=new CustomEvent("current_hover_change"):(this.currentHoverChangeEvent=Z.Z.document.createEvent("CustomEvent"),this.currentHoverChangeEvent.initCustomEvent("current_hover_change",!1,!1,null))}catch(e){console.error("could not create 'current_hover_change' customEvent. Error =",e)}this.props.id&&(this.currentHoverChangeEvent.galleryId=this.props.id)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this;!this.currentHoverChangeEvent.galleryId&&e.id&&(this.currentHoverChangeEvent.galleryId=e.id),this.props.activeIndex!==e.activeIndex&&e.activeIndex!==this.currentSlideshowViewIdx&&this.scrollToItem(e.activeIndex,!1,!0,0);var r=function(e){return{id:e.id,options:e.options,container:e.container,items:e.items,isInDisplay:e.isInDisplay,isPrerenderMode:e.isPrerenderMode}};this.reCreateGalleryTimer&&clearTimeout(this.reCreateGalleryTimer);var i,n=!0;try{var o=r(this.props),s=r(e);n=JSON.stringify(o)!==JSON.stringify(s),a.Z.isVerbose()&&n&&console.log("New props arrived",a.Z.printableObjectsDiff(o,s))}catch(e){console.error("Cannot compare props",e)}n&&(i=t.propsToState(e),Object.keys(i).length>0&&t.setState(i,t.handleNewGalleryStructure),this.props.isInDisplay!==e.isInDisplay&&this.handleNavigation(e.isInDisplay))},t.prototype.handleNavigation=function(e){e?this.videoScrollHelper.trigger.INIT_SCROLL():this.videoScrollHelper.stop()},t.prototype.handleNewGalleryStructure=function(){var e=this.state,t=e.container,r=e.needToHandleShowMoreClick,i=e.initialGalleryHeight,n="vertical"===this.containerInfiniteGrowthDirection(),o=!1;if(!n&&r){o=t.height+(i-138)}var l=this.props.options,u={numOfItems:this.state.items.length,container:t,options:l,layoutHeight:o||this.props.container.height,layoutItems:this.props.structure.items,isInfinite:n,isFixedHorizontlaGalleryRatio:"horizontal"===this.containerInfiniteGrowthDirection()&&this.state.options.layoutParams.structure.galleryRatio.value>0,updatedHeight:o};a.Z.isVerbose()&&console.log("handleNewGalleryStructure",u),this.eventsListener(s.Z.events.GALLERY_CHANGE,u),r&&this.setState({needToHandleShowMoreClick:!1})},t.prototype.isVerticalGallery=function(){return this.state.options.scrollDirection===s.Z.scrollDirection.VERTICAL},t.prototype.getIsScrollLessGallery=function(e){var t=e.scrollDirection,r=e.slideAnimation;return t===s.Z.scrollDirection.HORIZONTAL&&r!==s.Z.slideAnimations.SCROLL},t.prototype.getVisibleItems=function(e,t,r){var i,n,o=this.state.gotFirstScrollEvent,s=(null===(n=null===(i=this.state)||void 0===i?void 0:i.scrollPosition)||void 0===n?void 0:n.top)||0,a=t.galleryHeight,l=t.scrollBase,u=t.galleryWidth;if(r||(0,We.Vg)()||(0,We.wh)()||o||s>0||(0,We.g4)()||this.props.activeIndex>0)return e;var c=e;try{var d=Z.Z.innerHeight,h=this.isVerticalGallery()&&"vertical"===this.containerInfiniteGrowthDirection()?1/0:l+a,p=s+d,g=Math.min(h,p)-l;(c=g<0?[]:this.isVerticalGallery()?e.filter((function(e){return e.offset.top=0){if(this.state.gotFirstScrollEvent||this.setState({gotFirstScrollEvent:!0}),this.getIsScrollLessGallery(this.state.options))return;var a=this._scrollingElement,l=a.horizontal();try{var u={scrollMarginCorrection:n,isRTL:this.state.options.isRTL,scrollDirection:this.state.options.scrollDirection,galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,items:this.galleryStructure.items,totalWidth:this.galleryStructure.width,itemIdx:e,fixedScroll:t,isManual:r,scrollingElement:a,horizontalElement:l,durationInMS:i,slideTransition:this.state.options.slideTransition,isContinuousScrolling:o,autoSlideshowContinuousSpeed:this.state.options.autoSlideshowContinuousSpeed,imageMargin:this.state.options.imageMargin};return this.currentScrollData=(0,sr.rq)(u),this.currentScrollData.scrollDeffered.promise.then((function(){s.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToItem, cannot get scrollParams, ","isEditMode =",(0,We.wh)()," isPreviewMode =",(0,We.g4)()," isSiteMode =",(0,We.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}},t.prototype.scrollToGroup=function(e,t,r,i,n,o){var s=this;if(void 0===i&&(i=0),void 0===o&&(o=!1),e>=0){var a=this._scrollingElement,l=a.horizontal();try{var u={scrollMarginCorrection:n,isRTL:this.state.options.isRTL,scrollDirection:this.state.options.scrollDirection,galleryWidth:this.state.container.galleryWidth,galleryHeight:this.state.container.galleryHeight,top:0,groups:this.galleryStructure.groups,totalWidth:this.galleryStructure.width,groupIdx:e,fixedScroll:t,isManual:r,scrollingElement:a,horizontalElement:l,durationInMS:i,slideTransition:this.state.options.slideTransition,isContinuousScrolling:o,autoSlideshowContinuousSpeed:this.state.options.autoSlideshowContinuousSpeed,imageMargin:this.state.options.imageMargin};return this.currentScrollData=(0,sr.cb)(u),this.currentScrollData.scrollDeffered.promise.then((function(){s.currentScrollData=null}))}catch(e){console.error("error:",e," pro-gallery, scrollToGroup, cannot get scrollParams, ","isEditMode =",(0,We.wh)()," isPreviewMode =",(0,We.g4)()," isSiteMode =",(0,We.bK)()," this.state.options =",this.state.options," this.state.container =",this.state.container," this.galleryStructure =",this.galleryStructure)}}},t.prototype.containerInfiniteGrowthDirection=function(e){void 0===e&&(e=!1);var t=e||this.props.options,r=this.props.options.enableInfiniteScroll,i=this.state.showMoreClickedAtLeastOnce,n=t.scrollDirection,o=t.loadMoreAmount;return n===s.Z.scrollDirection.HORIZONTAL?"horizontal":r||i&&"all"===o?"vertical":"none"},t.prototype.setPlayingIdxState=function(e){this.setState({playingVideoIdx:e})},t.prototype.onGalleryScroll=function(e){this.props.isInDisplay&&this.eventsListener(s.Z.events.GALLERY_SCROLLED,e)},t.prototype.componentDidUpdate=function(e,t){if(this.setVisibilityIfNeeded(e,t),this.props.isPrerenderMode!==e.isPrerenderMode){var r=document.body,i=document.documentElement,n=Z.Z.innerHeight,o=Math.max(r.scrollHeight,r.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);this.getMoreItemsIfScrollIsDisabled(o,n)}},t.prototype.createDynamicStyles=function(e,t){var r=e.overlayBackground,i=t&&!this.props.settings.disableSSROpacity;this.dynamicStyles=("\n "+(i?"#pro-gallery-"+this.props.id+" .gallery-item-container { opacity: 0 }":"")+"\n "+(r?"#pro-gallery-"+this.props.id+" .gallery-item-hover::before { background: "+r+" !important}":"")+"\n ").trim()},t.prototype.createCssLayoutsIfNeeded=function(e){var t=this.props.settings;(void 0===t?{}:t).avoidInlineStyles&&(this.layoutCss=function(e){var t=e.galleryItems,r=e.layoutParams,i=e.id,n=[];return n.push(lr(i,t,r.styleParams)),n}({layoutParams:e,isMobile:a.Z.isMobile(),id:this.props.id,galleryItems:this.galleryStructure.galleryItems}))},t.prototype.getScrollCss=function(e){var t=e.id,r=e.items,i=e.options,n=e.container;this.scrollCss=tt.calcScrollCss({items:r,options:i,id:t,container:n})},t.prototype.toggleLoadMoreItems=function(){var e=this;this.eventsListener(s.Z.events.LOAD_MORE_CLICKED,this.galleryStructure.galleryItems);if(this.state.showMoreClickedAtLeastOnce)this.setState({needToHandleShowMoreClick:true},(function(){e.handleNewGalleryStructure()}));else{this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container});var t=this.state.container.height;this.setState({showMoreClickedAtLeastOnce:!0,initialGalleryHeight:t,needToHandleShowMoreClick:true},(function(){e.handleNewGalleryStructure()}))}},t.prototype.setGotFirstScrollIfNeeded=function(){this.state.gotFirstScrollEvent||(this.getScrollCss({id:this.props.id,items:this.galleryStructure.galleryItems,options:this.state.options,container:this.state.container}),this.setState({gotFirstScrollEvent:!0}))},t.prototype.setCurrentSlideshowViewIdx=function(e){this.currentSlideshowViewIdx=e},t.prototype.simulateHorizontalScrollToItem=function(e){(null==e?void 0:e.offset)&&this.onGalleryScroll({left:e.offset.left})},t.prototype.eventsListener=function(e,t,r){if(this.videoScrollHelper.handleEvent({eventName:e,eventData:t}),e===s.Z.events.HOVER_SET&&(this.currentHoverChangeEvent.currentHoverIdx=t,Z.Z.dispatchEvent(this.currentHoverChangeEvent)),e===s.Z.events.CURRENT_ITEM_CHANGED&&(this.setCurrentSlideshowViewIdx(t.idx),this.getIsScrollLessGallery(this.state.options)&&this.simulateHorizontalScrollToItem(this.galleryStructure.items[t.idx])),!this.state.firstUserInteractionExecuted)switch(e){case s.Z.events.HOVER_SET:case s.Z.events.LOAD_MORE_CLICKED:case s.Z.events.ITEM_ACTION_TRIGGERED:this.setState({firstUserInteractionExecuted:!0})}if("function"==typeof this.props.eventsListener)switch(e){case s.Z.events.ITEM_ACTION_TRIGGERED:case s.Z.events.ITEM_CLICKED:setTimeout(this.props.eventsListener(e,t,r),0);break;default:this.props.eventsListener(e,t,r)}if(e===s.Z.events.GALLERY_SCROLLED){this.videoScrollHelper.trigger.SCROLL(t);var n=(0,i.__assign)((0,i.__assign)({},this.state.scrollPosition),t);this.setState({scrollPosition:n})}},t.prototype.getMoreItemsIfNeeded=function(e){var t,r=this;if(null===(t=this.deferredGettingMoreItems)||void 0===t?void 0:t.isPending);else if(this.deferredGettingMoreItems=new dr.B,this.galleryStructure&&this.galleryStructure.galleryItems&&this.galleryStructure.galleryItems.length>0&&this.state.items&&this.state.options&&this.state.container){var i=this.state.options.scrollDirection,n=this.galleryStructure[i===s.Z.scrollDirection.HORIZONTAL?"width":"height"]+(i===s.Z.scrollDirection.HORIZONTAL?0:this.state.container.scrollBase),o=Z.Z[i===s.Z.scrollDirection.HORIZONTAL?"innerWidth":"innerHeight"];n<(e?3*o:0)+(e+o)?(this.eventsListener(s.Z.events.NEED_MORE_ITEMS,this.state.items.length),setTimeout((function(){r.deferredGettingMoreItems.resolve()}),2e3)):this.deferredGettingMoreItems.reject()}else this.deferredGettingMoreItems.reject();return this.deferredGettingMoreItems.promise.catch((function(){}))},t.prototype.canRender=function(){var e=this.props.container&&this.props.options&&this.state.items;return!e&&a.Z.isVerbose()&&console.log("PROGALLERY [CAN_RENDER] GalleryContainer",e,this.props.container,this.props.options,this.state.items),e},t.prototype.onMouseEnter=function(){var e;(null===(e=this.currentScrollData)||void 0===e?void 0:e.isContinuousScrolling)&&this.state.options.pauseAutoSlideshowOnHover&&(0,sr.r1)(this.currentScrollData),this.setState({isInHover:!0})},t.prototype.onMouseLeave=function(){this.setState({isInHover:!1})},t.prototype.render=function(){var e,t,r,n=this;if(!this.canRender())return null;var l=this.props.options.scrollDirection===s.Z.scrollDirection.HORIZONTAL?or:Et;a.Z.isVerbose()&&(console.count("PROGALLERY [COUNTS] - GalleryContainer (render)"),console.log("PROGALLERY [RENDER] - GalleryContainer",this.props.container.scrollBase,{props:this.props,items:this.state.items}));var u="none"===this.containerInfiniteGrowthDirection();return o().createElement("div",{"data-key":"pro-gallery-inner-container",key:"pro-gallery-inner-container",className:this.props.isPrerenderMode?"pro-gallery-prerender":"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:function(e){return n.galleryContainerRef=e},tabIndex:-1},o().createElement(ar,{id:this.props.id,scrollDirection:this.props.options.scrollDirection,isRTL:this.props.options.isRTL,totalWidth:this.galleryStructure.width,scrollBase:this.props.container.scrollBase,scrollingElement:this._scrollingElement,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,onScroll:this.onGalleryScroll}),o().createElement(l,(0,i.__assign)({isInDisplay:this.props.isInDisplay,isInViewport:this.state.isInViewport,isPrerenderMode:this.props.isPrerenderMode,scrollingElement:this._scrollingElement,totalItemsCount:this.props.totalItemsCount,renderedItemsCount:this.props.renderedItemsCount,getMoreItemsIfNeeded:this.getMoreItemsIfNeeded,gotFirstScrollEvent:this.state.gotFirstScrollEvent,setGotFirstScrollIfNeeded:this.setGotFirstScrollIfNeeded,items:this.state.items,getVisibleItems:this.getVisibleItems,galleryStructure:this.galleryStructure,options:this.props.options,container:this.props.container,settings:this.props.settings,displayShowMore:u,id:this.props.id,activeIndex:this.props.activeIndex||0,customComponents:this.props.customComponents,playingVideoIdx:this.state.playingVideoIdx,noFollowForSEO:this.props.noFollowForSEO,proGalleryRegionLabel:this.props.proGalleryRegionLabel,proGalleryRole:this.props.proGalleryRole,firstUserInteractionExecuted:this.state.firstUserInteractionExecuted,isGalleryInHover:this.state.isInHover,enableExperimentalFeatures:this.props.enableExperimentalFeatures,galleryContainerRef:this.galleryContainerRef,outOfViewComponent:this.outOfViewComponent,virtualizationSettings:this.props.virtualizationSettings,galleryContainerId:"pro-gallery-container-"+this.props.id,scrollTop:null===(t=null===(e=this.state)||void 0===e?void 0:e.scrollPosition)||void 0===t?void 0:t.top,isScrollLessGallery:this.getIsScrollLessGallery(this.state.options),actions:(0,i.__assign)((0,i.__assign)({},this.props.actions),{findNeighborItem:this.findNeighborItem,toggleLoadMoreItems:this.toggleLoadMoreItems,eventsListener:this.eventsListener,setWixHeight:function(){},scrollToItem:this.scrollToItem,scrollToGroup:this.scrollToGroup})},this.props.gallery)),o().createElement("div",{"data-key":"items-styles",key:"items-styles",style:{display:"none"}},(this.layoutCss||[]).filter(Boolean).map((function(e,t){return o().createElement("style",{id:"layoutCss-"+t,key:"layoutCss-"+t,dangerouslySetInnerHTML:{__html:e}})})),(this.scrollCss||[]).filter(Boolean).map((function(e,t){return o().createElement("style",{id:"scrollCss_"+t,key:"scrollCss_"+t,dangerouslySetInnerHTML:{__html:e}})})),!!this.dynamicStyles&&o().createElement("style",{dangerouslySetInnerHTML:{__html:this.dynamicStyles}})),"application"===this.props.proGalleryRole&&o().createElement("span",{ref:function(e){return n.outOfViewComponent=e},tabIndex:-1,className:"sr-only out-of-view-component"},null===(r=this.props.translations)||void 0===r?void 0:r.Accessibility_Left_Gallery))},t}(o().Component);const pr=hr;const gr=function(e){function t(){var t=e.call(this)||this;return a.Z.isLocal()&&!a.Z.isTest()&&console.log("PRO GALLERY DEV"),t}return(0,i.__extends)(t,e),t.prototype.renderProps=function(){var e;return(0,i.__assign)((0,i.__assign)({},this.props),{id:this.props.id,items:this.props.items||[],settings:this.props.settings||{},offsetTop:this.props.offsetTop,proGalleryRegionLabel:this.props.proGalleryRegionLabel,isInDisplay:null===(e=this.props.isInDisplay)||void 0===e||e})},t.prototype.containerProps=function(){return{id:"pro-gallery-"+this.props.id,className:"pro-gallery"}},t.prototype.render=function(){return o().createElement("div",(0,i.__assign)({},this.containerProps()),o().createElement(pr,(0,i.__assign)({},this.renderProps())))},t}(o().Component);function mr(e,t){return!0!==t&&(!0===e.shouldValidateTypes||"true"===(function(){try{var e=new URLSearchParams(window.location.search);return Object.fromEntries(e.entries())}catch(e){return console.log("cannot use the URLSearchParams",e),{}}}()||""))}var fr=function(e){function t(t){var r=e.call(this,t)||this;return r.isUsingCustomInfoElements=r.isUsingCustomInfoElements.bind(r),r.blueprintsManager=new Ge({id:"layoutingGallery"}),r.blueprintsManager.init({deviceType:t.deviceType,api:{isUsingCustomInfoElements:r.isUsingCustomInfoElements,fetchMoreItems:function(e){"function"==typeof t.eventsListener&&t.eventsListener(s.Z.events.NEED_MORE_ITEMS,e)},onBlueprintReady:function(e){var t=e.blueprint,i=e.blueprintChanged,n=e.initialBlueprint;i?r.setBlueprint(t,n):a.Z.isVerbose()&&console.count(">>> Blueprint not changed, not setting it")}}}),r.onNewProps(t,!0),r.state={blueprint:r.blueprintsManager.createInitialBlueprint(t)||null},r}return(0,i.__extends)(t,e),t.prototype.setBlueprint=function(e,t){t||this.setState({blueprint:e})},t.prototype.isUsingCustomInfoElements=function(){return!!this.galleryProps.customComponents.customHoverRenderer||!!this.galleryProps.customComponents.customInfoRenderer},t.prototype.onNewProps=function(e,t){var r=this,n=e.eventsListener,o=(0,i.__rest)(e,["eventsListener"]);this.galleryProps=(0,i.__assign)((0,i.__assign)({},o),{eventsListener:function(e,t,i){e===s.Z.events.NEED_MORE_ITEMS?r.blueprintsManager.getMoreItems(t):"function"==typeof n&&n(e,t,i)},id:e.id||"default-dom-id",customComponents:e.customComponents||{}}),t||this.blueprintsManager.createBlueprint(this.galleryProps).catch((function(e){console.error("Could not create a blueprint from the new props",e)}))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.onNewProps(e,!1)},t.prototype.render=function(){var e=this.state,t=e.blueprint,r=e.typeErrors;return r||(t&&Object.keys(t).length>0?o().createElement(gr,(0,i.__assign)({},this.galleryProps,t)):null)},t.prototype.componentDidMount=function(){return(0,i.__awaiter)(this,void 0,void 0,(function(){var e,t,n,o;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return!1===mr(this.props,a.Z.isSSR())?[2]:[4,r.e(8368).then(r.bind(r,49467))];case 1:return e=i.sent(),t=e.validate,n=e.typeErrorsUI,(o=t(this.state.blueprint.options)).length>0&&this.setState({typeErrors:n(o)}),[2]}}))}))},t}(o().Component);const yr=(vr=fr,function(e){function t(t){var r=e.call(this,t)||this;return r.initViewModeWrapper(t),r}return(0,i.__extends)(t,e),t.prototype.initViewModeWrapper=function(e){void 0!==e.viewMode&&We.Ce.setViewMode(e.viewMode),void 0!==e.deviceType&&We.Ce._deviceType!==e.deviceType&&(a.Z.dumpCache(),We.Ce.setDeviceType(e.deviceType))},t.prototype.updateViewModeWrapper=function(e){this.props.viewMode!==e.viewMode&&(a.Z.dumpCache(),We.Ce.setViewMode(e.viewMode)),this.props.deviceType!==e.deviceType&&(a.Z.dumpCache(),We.Ce.setDeviceType(e.deviceType))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.updateViewModeWrapper(e)},t.prototype.render=function(){return o().createElement(vr,(0,i.__assign)({},this.props))},t}(o().Component));var vr},65286:(e,t,r)=>{"use strict";r.d(t,{B:()=>n,I:()=>o});var i=r(40496),n=function(){var e=this;this.promise=new Promise((function(t,r){e.reject=function(){for(var t=[],i=0;ir;return n&&o}catch(e){return console.warn("Could not calculate viewport",e),!0}}},3640:(e,t,r)=>{"use strict";r.d(t,{ZS:()=>u,cb:()=>a,qW:()=>c,r1:()=>h,rq:()=>s});var i=r(17324),n=r(81023),o=r(65286);function s(e){var t,r,o=e.scrollMarginCorrection,s=void 0===o?0:o,a=e.durationInMS,l=e.horizontalElement,u=e.scrollingElement,c=e.isRTL,h=e.scrollDirection,p=e.galleryWidth,g=e.galleryHeight,m=e.totalWidth,f=e.top,y=e.items,v=e.itemIdx,b=e.fixedScroll,S=e.slideTransition,P=e.isContinuousScrolling,w=e.autoSlideshowContinuousSpeed,_=e.imageMargin,C=c?-1:1;if(h===n.Z.scrollDirection.HORIZONTAL?(r=l.scrollLeft*C,t=r+v*p/2):(r=f,t=f+v*g/2),!0!==b){i.Z.isVerbose()&&console.log("Scrolling to items #"+v);var E=y.find((function(e){return e.idx===v}));if(t=h===n.Z.scrollDirection.HORIZONTAL?i.Z.get(E,"offset.left"):i.Z.get(E,"offset.top"),i.Z.isVerbose()&&console.log("Scrolling to position "+t,E),!(t>=0))return i.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(e){return e()}));if(h===n.Z.scrollDirection.HORIZONTAL){var I=(p-E.width-_)/2;t-=I,t=Math.max(0,t),t=Math.min(t,m-p+s),t*=C,r*=C,i.Z.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return h===n.Z.scrollDirection.HORIZONTAL?d({scroller:l,from:Math.round(r),to:Math.round(t),duration:a,isRTL:c,slideTransition:S,isContinuousScrolling:P,autoSlideshowContinuousSpeed:w}):new Promise((function(e){u.vertical().scrollTo(0,t),e(t)}))}function a(e){var t,r,o=e.scrollMarginCorrection,s=void 0===o?0:o,a=e.durationInMS,l=e.horizontalElement,u=e.scrollingElement,c=e.isRTL,h=e.scrollDirection,p=e.galleryWidth,g=e.galleryHeight,m=e.totalWidth,f=e.top,y=e.groups,v=e.groupIdx,b=e.fixedScroll,S=e.slideTransition,P=e.isContinuousScrolling,w=e.autoSlideshowContinuousSpeed,_=e.imageMargin,C=c?-1:1;if(h===n.Z.scrollDirection.HORIZONTAL?(r=l.scrollLeft,t=r+v*p/2):(r=f,t=f+v*g/2),!0!==b){i.Z.isVerbose()&&console.log("Scrolling to groups #"+v);var E=y.find((function(e){return e.idx===v}));if(t=h===n.Z.scrollDirection.HORIZONTAL?i.Z.get(E,"left"):i.Z.get(E,"top"),i.Z.isVerbose()&&console.log("Scrolling to position "+t,E),!(t>=0))return i.Z.isVerbose()&&console.warn("Position not found, not scrolling"),new Promise((function(e){return e()}));if(h===n.Z.scrollDirection.HORIZONTAL){var I=(p-E.width-_)/2;t-=I,t=Math.max(0,t),t=Math.min(t,m-p+s),t*=C,i.Z.isVerbose()&&console.log("Scrolling to new position "+t,this)}}return h===n.Z.scrollDirection.HORIZONTAL?d({scroller:l,from:Math.round(r),to:Math.round(t),duration:a,isRTL:c,slideTransition:S,isContinuousScrolling:P,autoSlideshowContinuousSpeed:w}):new Promise((function(e){u.vertical().scrollTo(0,t),e(t)}))}function l(e){var t=e.offset,r=e.scroll,i=e.itemStart;return{before:r-t-e.itemEnd,after:t+i-e.screenSize-r}}function u(e){var t=e.target,r=e.scrollBase,i=e.top,n=e.bottom,o=e.screenHeight,s=e.padding,a=l({offset:r||0,scroll:t.scrollY,itemStart:i,itemEnd:n,screenSize:o});return a.before{"use strict";r.d(t,{VD:()=>l,WT:()=>d,sq:()=>c});var i=r(3790),n=r(17324),o=r(40496),s=r(81023);function a(){return((0,i.bK)()||(0,i.Vg)())&&!n.Z.isMobile()&&o.Z.document}function l(e){var t=e.itemContainer,r=e.enableExperimentalFeatures,i=e.itemAnchor;a()&&r&&(o.Z.document.activeElement===i&&t.focus())}function u(e,t){var r=o.Z.document.activeElement;return String(r.className).includes(e)&&!!o.Z.document.querySelector("#pro-gallery-"+t+" #"+String(r.id))}function c(e){var t=e.prevProps,r=e.currentProps,i=e.itemContainer;try{if(a()&&o.Z.document.activeElement.className){var n=u("gallery-item-container",r.galleryId),s=u("show-more",r.galleryId);(n||s)&&(r.thumbnailHighlightId!==t.thumbnailHighlightId&&r.thumbnailHighlightId===r.id||r.activeIndex!==t.activeIndex&&r.activeIndex===r.idx)&&i.focus()}}catch(e){console.error("Could not set focus to active element",e)}}function d(e){return e.enableVideoPlaceholder&&(!n.Z.isSingleItemHorizontalDisplay(e)||e.videoPlay!==s.Z.videoPlay.AUTO)}},27061:e=>{var t,r,i=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:n}catch(e){t=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var a,l=[],u=!1,c=-1;function d(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(a=l,l=[];++c1)for(var r=1;r{"use strict";var i=r(90331);function n(){}function o(){}o.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,o,s){if(s!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r,r}},23615:(e,t,r)=>{e.exports=r(58772)()},90331:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},13846:(e,t)=>{"use strict";t.Z=function(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}},58702:(e,t)=>{"use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,n=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,a=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,f=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,S=r?Symbol.for("react.scope"):60119;function P(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case c:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case f:case m:case l:return e;default:return t}}case n:return t}}}function w(e){return P(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=f,t.Memo=m,t.Portal=n,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||P(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return P(e)===u},t.isContextProvider=function(e){return P(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return P(e)===h},t.isFragment=function(e){return P(e)===o},t.isLazy=function(e){return P(e)===f},t.isMemo=function(e){return P(e)===m},t.isPortal=function(e){return P(e)===n},t.isProfiler=function(e){return P(e)===a},t.isStrictMode=function(e){return P(e)===s},t.isSuspense=function(e){return P(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===S||e.$$typeof===y)},t.typeOf=P},19185:(e,t,r)=>{"use strict";e.exports=r(58702)},15306:(e,t,r)=>{"use strict";r.d(t,{E:()=>s});var i=r(27762);const n=Symbol.for(`react-redux-context-${i.version}`),o=globalThis;const s=new Proxy({},new Proxy({},{get(e,t){const r=function(){let e=o[n];return e||(e=(0,i.createContext)(null),o[n]=e),e}();return(e,...i)=>Reflect[t](r,...i)}}))},53221:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var i=r(27762),n=r.n(i),o=r(15306),s=r(83690),a=r(58846);const l=function({store:e,context:t,children:r,serverState:l,stabilityCheck:u="once",noopCheck:c="once"}){const d=(0,i.useMemo)((()=>{const t=(0,s.X)(e);return{store:e,subscription:t,getServerState:l?()=>l:void 0,stabilityCheck:u,noopCheck:c}}),[e,l,u,c]),h=(0,i.useMemo)((()=>e.getState()),[e]);(0,a.L)((()=>{const{subscription:t}=d;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),h!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[d,h]);const p=t||o.E;return n().createElement(p.Provider,{value:d},r)}},35634:(e,t,r)=>{"use strict";r.d(t,{Z:()=>E,v:()=>P});var i=r(25773),n=r(30808),o=r(55839),s=r.n(o),a=r(27762),l=r.n(a),u=r(69272),c=r(96684),d=r(60002),h=r(879),p=r(72343),g=r(83690),m=r(58846),f=r(56305),y=r(15306),v=r(40936);const b=["reactReduxForwardedRef"];let S=v.B;const P=e=>{S=e},w=[null,null];function _(e,t,r,i,n,o){e.current=i,r.current=!1,n.current&&(n.current=null,o())}function C(e,t){return e===t}const E=function(e,t,r,{pure:o,areStatesEqual:v=C,areOwnPropsEqual:P=f.Z,areStatePropsEqual:E=f.Z,areMergedPropsEqual:I=f.Z,forwardRef:O=!1,context:x=y.E}={}){const A=x,T=(0,h.R)(e),L=(0,d.W)(t),M=(0,p.eV)(r),R=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",r=`Connect(${t})`,o={shouldHandleStateChanges:R,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:T,initMapDispatchToProps:L,initMergeProps:M,areStatesEqual:v,areStatePropsEqual:E,areOwnPropsEqual:P,areMergedPropsEqual:I};function d(t){const[r,s,d]=(0,a.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,r=(0,n.Z)(t,b);return[t.context,e,r]}),[t]),h=(0,a.useMemo)((()=>r&&r.Consumer&&(0,u.isContextConsumer)(l().createElement(r.Consumer,null))?r:A),[r,A]),p=(0,a.useContext)(h),f=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),y=Boolean(p)&&Boolean(p.store);const v=f?t.store:p.store,P=y?p.getServerState:v.getState,C=(0,a.useMemo)((()=>(0,c.Z)(v.dispatch,o)),[v]),[E,I]=(0,a.useMemo)((()=>{if(!R)return w;const e=(0,g.X)(v,f?void 0:p.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[v,f,p]),O=(0,a.useMemo)((()=>f?p:(0,i.Z)({},p,{subscription:E})),[f,p,E]),x=(0,a.useRef)(),T=(0,a.useRef)(d),L=(0,a.useRef)(),M=(0,a.useRef)(!1),N=((0,a.useRef)(!1),(0,a.useRef)(!1)),k=(0,a.useRef)();(0,m.L)((()=>(N.current=!0,()=>{N.current=!1})),[]);const D=(0,a.useMemo)((()=>()=>L.current&&d===T.current?L.current:C(v.getState(),d)),[v,d]),Z=(0,a.useMemo)((()=>e=>E?function(e,t,r,i,n,o,s,a,l,u,c){if(!e)return()=>{};let d=!1,h=null;const p=()=>{if(d||!a.current)return;const e=t.getState();let r,p;try{r=i(e,n.current)}catch(e){p=e,h=e}p||(h=null),r===o.current?s.current||u():(o.current=r,l.current=r,s.current=!0,c())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}(R,v,E,C,T,x,M,N,L,I,e):()=>{}),[E]);var H,B,W;let F;H=_,B=[T,x,M,d,L,I],(0,m.L)((()=>H(...B)),W);try{F=S(Z,D,P?()=>C(P(),d):D)}catch(e){throw k.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${k.current.stack}\n\n`),e}(0,m.L)((()=>{k.current=void 0,L.current=void 0,x.current=F}));const G=(0,a.useMemo)((()=>l().createElement(e,(0,i.Z)({},F,{ref:s}))),[s,e,F]);return(0,a.useMemo)((()=>R?l().createElement(h.Provider,{value:O},G):G),[h,G,O])}const h=l().memo(d);if(h.WrappedComponent=e,h.displayName=d.displayName=r,O){const t=l().forwardRef((function(e,t){return l().createElement(h,(0,i.Z)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=r,t.WrappedComponent=e,s()(t,e)}return s()(h,e)}}},87513:(e,t,r)=>{"use strict";function i(e,t){return(r,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}r.d(t,{V:()=>i})},60002:(e,t,r)=>{"use strict";r.d(t,{W:()=>s});var i=r(37031),n=r(29543),o=r(87513);function s(e){return e&&"object"==typeof e?(0,n.dX)((t=>(0,i.Z)(e,t))):e?"function"==typeof e?(0,n.xv)(e,"mapDispatchToProps"):(0,o.V)(e,"mapDispatchToProps"):(0,n.dX)((e=>({dispatch:e})))}},879:(e,t,r)=>{"use strict";r.d(t,{R:()=>o});var i=r(29543),n=r(87513);function o(e){return e?"function"==typeof e?(0,i.xv)(e,"mapStateToProps"):(0,n.V)(e,"mapStateToProps"):(0,i.dX)((()=>({})))}},72343:(e,t,r)=>{"use strict";r.d(t,{eV:()=>s});var i=r(25773),n=r(87513);function o(e,t,r){return(0,i.Z)({},r,e,t)}function s(e){return e?"function"==typeof e?function(e){return function(t,{displayName:r,areMergedPropsEqual:i}){let n,o=!1;return function(t,r,s){const a=e(t,r,s);return o?i(a,n)||(n=a):(o=!0,n=a),n}}}(e):(0,n.V)(e,"mergeProps"):()=>o}},96684:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var i=r(30808);const n=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function o(e,t,r,i,{areStatesEqual:n,areOwnPropsEqual:o,areStatePropsEqual:s}){let a,l,u,c,d,h=!1;function p(h,p){const g=!o(p,l),m=!n(h,a,p,l);return a=h,l=p,g&&m?(u=e(a,l),t.dependsOnOwnProps&&(c=t(i,l)),d=r(u,c,l),d):g?(e.dependsOnOwnProps&&(u=e(a,l)),t.dependsOnOwnProps&&(c=t(i,l)),d=r(u,c,l),d):m?function(){const t=e(a,l),i=!s(t,u);return u=t,i&&(d=r(u,c,l)),d}():d}return function(n,o){return h?p(n,o):(a=n,l=o,u=e(a,l),c=t(i,l),d=r(u,c,l),h=!0,d)}}function s(e,t){let{initMapStateToProps:r,initMapDispatchToProps:s,initMergeProps:a}=t,l=(0,i.Z)(t,n);return o(r(e,l),s(e,l),a(e,l),e,l)}},29543:(e,t,r)=>{"use strict";function i(e){return function(t){const r=e(t);function i(){return r}return i.dependsOnOwnProps=!1,i}}function n(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function o(e,t){return function(t,{displayName:r}){const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,r){i.mapToProps=e,i.dependsOnOwnProps=n(e);let o=i(t,r);return"function"==typeof o&&(i.mapToProps=o,i.dependsOnOwnProps=n(o),o=i(t,r)),o},i}}r.d(t,{dX:()=>i,xv:()=>o})},71006:(e,t,r)=>{"use strict";r.d(t,{$j:()=>n.Z,v9:()=>o.v9,zt:()=>i.Z});var i=r(53221),n=r(35634),o=(r(15306),r(77648),r(16969));r(80384)},77648:(e,t,r)=>{"use strict";r(15306),r(80384)},49480:(e,t,r)=>{"use strict";r.d(t,{o:()=>o,x:()=>s});var i=r(27762),n=r(15306);function o(e=n.E){return function(){return(0,i.useContext)(e)}}const s=o()},16969:(e,t,r)=>{"use strict";r.d(t,{Fu:()=>a,v9:()=>c});var i=r(27762),n=r(49480),o=r(15306);let s=r(40936).B;const a=e=>{s=e},l=(e,t)=>e===t;function u(e=o.E){const t=e===o.E?n.x:(0,n.o)(e);return function(e,r={}){const{equalityFn:n=l,stabilityCheck:o,noopCheck:a}="function"==typeof r?{equalityFn:r}:r;const{store:u,subscription:c,getServerState:d,stabilityCheck:h,noopCheck:p}=t(),g=((0,i.useRef)(!0),(0,i.useCallback)({[e.name]:t=>e(t)}[e.name],[e,h,o])),m=s(c.addNestedSub,u.getState,d||u.getState,g,n);return(0,i.useDebugValue)(m),m}}const c=u()},80384:(e,t,r)=>{"use strict";r(15306),r(49480)},77897:(e,t,r)=>{"use strict";r.d(t,{$j:()=>u.$j,v9:()=>u.v9,zt:()=>u.zt});var i=r(70644),n=r(60626),o=r(67661),s=r(86673),a=r(16969),l=r(35634),u=r(71006);(0,a.Fu)(n.useSyncExternalStoreWithSelector),(0,l.v)(i.useSyncExternalStore),(0,s.F)(o.m)},83690:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var i=r(86673);const n={notify(){},get:()=>[]};function o(e,t){let r,o=n;function s(){l.onStateChange&&l.onStateChange()}function a(){r||(r=t?t.addNestedSub(s):e.subscribe(s),o=function(){const e=(0,i.k)();let t=null,r=null;return{clear(){t=null,r=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],r=t;for(;r;)e.push(r),r=r.next;return e},subscribe(e){let i=!0,n=r={callback:e,next:null,prev:r};return n.prev?n.prev.next=n:t=n,function(){i&&null!==t&&(i=!1,n.next?n.next.prev=n.prev:r=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}())}const l={addNestedSub:function(e){return a(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:s,isSubscribed:function(){return Boolean(r)},trySubscribe:a,tryUnsubscribe:function(){r&&(r(),r=void 0,o.clear(),o=n)},getListeners:()=>o};return l}},86673:(e,t,r)=>{"use strict";r.d(t,{F:()=>n,k:()=>o});let i=function(e){e()};const n=e=>i=e,o=()=>i},37031:(e,t,r)=>{"use strict";function i(e,t){const r={};for(const i in e){const n=e[i];"function"==typeof n&&(r[i]=(...e)=>t(n(...e)))}return r}r.d(t,{Z:()=>i})},67661:(e,t,r)=>{"use strict";r.d(t,{m:()=>i.unstable_batchedUpdates});var i=r(88677)},56305:(e,t,r)=>{"use strict";function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function n(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;nn})},58846:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var i=r(27762);const n=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?i.useLayoutEffect:i.useEffect},40936:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});const i=()=>{throw new Error("uSES not initialized!")}},57978:(e,t)=>{"use strict";var r,i=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"); /** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case o:case a:case s:case h:case p:return e;default:switch(e=e&&e.$$typeof){case c:case u:case d:case m:case g:case l:return e;default:return t}}case n:return t}}}r=Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return y(e)===u}},69272:(e,t,r)=>{"use strict";e.exports=r(57978)},44905:(e,t,r)=>{"use strict";r.d(t,{PW:()=>o});var i="NOT_FOUND";var n=function(e,t){return e===t};function o(e,t){var r,o,s="object"==typeof t?t:{equalityCheck:t},a=s.equalityCheck,l=void 0===a?n:a,u=s.maxSize,c=void 0===u?1:u,d=s.resultEqualityCheck,h=function(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var i=t.length,n=0;n-1){var o=r[n];return n>0&&(r.splice(n,1),r.unshift(o)),o.value}return i}return{get:n,put:function(t,o){n(t)===i&&(r.unshift({key:t,value:o}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(c,h);function g(){var t=p.get(arguments);if(t===i){if(t=e.apply(null,arguments),d){var r=p.getEntries().find((function(e){return d(e.value,t)}));r&&(t=r.value)}p.put(arguments,t)}return t}return g.clearCache=function(){return p.clear()},g}},80406:(e,t,r)=>{"use strict";function i(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;in,wN:()=>i});var n=i(r(44905).PW)},10521:(e,t,r)=>{"use strict";var i=r(31832),n=Array.prototype.concat,o=Array.prototype.slice,s=e.exports=function(e){for(var t=[],r=0,s=e.length;r{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},94047:(e,t,r)=>{"use strict"; /** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=r(27762);var n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useState,s=i.useEffect,a=i.useLayoutEffect,l=i.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),i=o({inst:{value:r,getSnapshot:t}}),n=i[0].inst,c=i[1];return a((function(){n.value=r,n.getSnapshot=t,u(n)&&c({inst:n})}),[e,r,t]),s((function(){return u(n)&&c({inst:n}),e((function(){u(n)&&c({inst:n})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:c},92693:(e,t,r)=>{"use strict"; /** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=r(27762),n=r(70644);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useSyncExternalStore,a=i.useRef,l=i.useEffect,u=i.useMemo,c=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,i,n){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=u((function(){function e(e){if(!l){if(l=!0,s=e,e=i(e),void 0!==n&&h.hasValue){var t=h.value;if(n(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var r=i(e);return void 0!==n&&n(t,r)?t:(s=e,a=r)}var s,a,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,i,n]);var p=s(e,d[0],d[1]);return l((function(){h.hasValue=!0,h.value=p}),[p]),c(p),p}},70644:(e,t,r)=>{"use strict";e.exports=r(94047)},60626:(e,t,r)=>{"use strict";e.exports=r(92693)},47684:t=>{"use strict";t.exports=e},27762:e=>{"use strict";e.exports=t},88677:e=>{"use strict";e.exports=r},17607:e=>{"use strict";e.exports=i},93231:(e,t,r)=>{var i=r(74040);e.exports=function(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},73119:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var i=r(7501).default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},74040:(e,t,r)=>{var i=r(7501).default,n=r(56027);e.exports=function(e){var t=n(e,"string");return"symbol"==i(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},7501:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1793:(e,t,r)=>{"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);ri})},47169:(e,t,r)=>{"use strict";function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:()=>i})},22951:(e,t,r)=>{"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,{Z:()=>i})},91976:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var i=r(57543);function n(e,t){for(var r=0;r{"use strict";r.d(t,{Z:()=>n});var i=r(57543);function n(e,t,r){return(t=(0,i.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},25773:(e,t,r)=>{"use strict";function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;ti})},93219:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(6983);function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,i.Z)(e,t)}},30808:(e,t,r)=>{"use strict";function i(e,t){if(null==e)return{};var r,i,n={},o=Object.keys(e);for(i=0;i=0||(n[r]=e[r]);return n}r.d(t,{Z:()=>i})},6983:(e,t,r)=>{"use strict";function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}r.d(t,{Z:()=>i})},65809:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(64013);function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=o.call(r)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,n=e}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return a}}(e,t)||(0,i.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},94868:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(33940);function n(e,t){if("object"!=(0,i.Z)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=(0,i.Z)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},57543:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var i=r(33940),n=r(94868);function o(e){var t=(0,n.Z)(e,"string");return"symbol"==(0,i.Z)(t)?t:String(t)}},33940:(e,t,r)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}r.d(t,{Z:()=>i})},64013:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});var i=r(1793);function n(e,t){if(e){if("string"==typeof e)return(0,i.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,i.Z)(e,t):void 0}}},85556:(e,t,r)=>{"use strict";r.d(t,{__assign:()=>o,__awaiter:()=>a,__extends:()=>n,__generator:()=>l,__rest:()=>s,__spreadArray:()=>d,__spreadArrays:()=>c,__values:()=>u});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},i(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&n[n.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(){for(var e=0,t=0,r=arguments.length;t{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var r=Object.create(null);c.r(r);var i={};s=s||[null,a({}),a([]),a(a)];for(var n=2&t&&e;"object"==typeof n&&!~s.indexOf(n);n=a(n))Object.getOwnPropertyNames(n).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,c.d(r,i),r},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,r)=>(c.f[r](e,t),t)),[])),c.u=e=>"client-viewer/"+({75:"messages_messages_vi-json",265:"messages_messages_el-json",418:"messages_messages_fi-json",676:"messages_messages_it-json",686:"messages_messages_uk-json",695:"messages_messages_en-json",731:"proGallery_videoScrollHelper",997:"FullscreenModalViewer",1610:"messages_messages_no-json",1754:"messages_messages_hu-json",1874:"messages_messages_cs-json",2430:"messages_messages_ca-json",2595:"messages_messages_pt-json",2830:"wix-ricos-viewer",3003:"messages_messages_id-json",3132:"messages_messages_pl-json",3389:"messages_messages_sl-json",3877:"proGallery_vimeoPlayer",4015:"messages_messages_ro-json",4061:"post-actions",4465:"messages_messages_ja-json",4624:"messages_messages_bg-json",4769:"messages_messages_tr-json",4786:"messages_messages_ko-json",5205:"proGallery_reactPlayer",6158:"proGallery_videoItem",6825:"messages_messages_th-json",6831:"messages_messages_de-json",6954:"messages_messages_he-json",7164:"proGallery_HlsPlayer",7451:"messages_messages_da-json",7579:"messages_messages_fr-json",8279:"messages_messages_ru-json",8337:"debugging-info",8368:"proGallery_validateTypes",8964:"messages_messages_nl-json",8996:"messages_messages_ms-json",9012:"messages_messages_tl-json",9342:"messages_messages_es-json",9657:"messages_messages_zh-json",9753:"messages_messages_sv-json",9812:"messages_messages_hi-json",9831:"messages_messages_ar-json",9851:"messages_messages_sk-json",9975:"messages_messages_lt-json"}[e]||e)+".chunk.min.js",c.miniCssF=e=>"client-viewer/"+(4061===e?"post-actions":e)+".chunk.min.css",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l={},u="_wix_communities_blog_ooi:",c.l=(e,t,r,i)=>{if(l[e])l[e].push(t);else{var n,o;if(void 0!==r)for(var s=document.getElementsByTagName("script"),a=0;a{n.onerror=n.onload=null,clearTimeout(p);var i=l[e];if(delete l[e],n.parentNode&&n.parentNode.removeChild(n),i&&i.forEach((e=>e(r))),t)return t(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=h.bind(null,n.onerror),n.onload=h.bind(null,n.onload),o&&document.head.appendChild(n)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.j=1168,function(e){var t="-",r="--",i="---";function n(e,n,o){return!1===o||null==o||o!=o?"":!0===o?function(e,t){return e+r+t}(e,n):function(e,r,n){return e+i+r+t+n.length+t+n.replace(/\s/gm,"_")}(e,n,o.toString())}(e=e||{}).sts=function(e){for(var t=[],r=1;r{if("undefined"!=typeof document){var e=e=>new Promise(((t,r)=>{var i=c.miniCssF(e),n=c.p+i;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),i=0;i{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=r=>{if(o.onerror=o.onload=null,"load"===r.type)i();else{var s=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.href||t,l=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");l.code="CSS_CHUNK_LOAD_FAILED",l.type=s,l.request=a,o.parentNode&&o.parentNode.removeChild(o),n(l)}},o.href=t,0!==o.href.indexOf(window.location.origin+"/")&&(o.crossOrigin="anonymous"),r?r.parentNode.insertBefore(o,r.nextSibling):document.head.appendChild(o)})(e,n,null,t,r)})),t={1168:0,7577:0};c.f.miniCss=(r,i)=>{t[r]?i.push(t[r]):0!==t[r]&&{4061:1,4648:1}[r]&&i.push(t[r]=e(r).then((()=>{t[r]=0}),(e=>{throw delete t[r],e})))}}})(),(()=>{var e={1168:0,7577:0};c.f.j=(t,r)=>{var i=c.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var n=new Promise(((r,n)=>i=e[t]=[r,n]));r.push(i[2]=n);var o=c.p+c.u(t),s=new Error;c.l(o,(r=>{if(c.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,i[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,n,[o,s,a]=r,l=0;if(o.some((t=>0!==e[t]))){for(i in s)c.o(s,i)&&(c.m[i]=s[i]);if(a)a(c)}for(t&&t(r);l